class_docstr: Box collection.
class_docstr_tok: ["Box","collection","."]
docstr: Computes the center coordinates, height and width of the boxes.
  
  Args:
    scope: name scope of the function.
  
  Returns:
    a list of 4 1-D tensors [ycenter, xcenter, height, width].
docstr_tok: ["Computes","the","center","coordinates",",","height","and","width","of","the","boxes",".","Args",":","scope",":","name","scope","of","the","function",".","Returns",":","a","list","of","4","1-D","tensors","[","ycenter",",","xcenter",",","height",",","width","]","."]
code: def get_center_coordinates_and_sizes(self, scope=None):
      """Computes the center coordinates, height and width of the boxes.
  
      Args:
        scope: name scope of the function.
  
      Returns:
        a list of 4 1-D tensors [ycenter, xcenter, height, width].
      """
      with tf.name_scope(scope, "get_center_coordinates_and_sizes"):
          box_corners = self.get()
          ymin, xmin, ymax, xmax = tf.unstack(tf.transpose(box_corners))
          width = xmax - xmin
          height = ymax - ymin
          ycenter = ymin + height / 2.0
          xcenter = xmin + width / 2.0
          return [ycenter, xcenter, height, width]
  
file_path: DALI/docs/examples/use_cases/tensorflow/efficientdet/pipeline/anchors_utils/box_list.py
imports: import tensorflow.compat.v1
label_desc: Use image node_id 12 for calling the BoxList obj's underlying member method code with example usage: obj.get_center_coordinates_and_sizes(scope) and returns: list