MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __call__

Method __call__

monai/apps/detection/transforms/array.py:79–84  ·  view source on GitHub ↗

Args: boxes: source bounding boxes, Nx4 or Nx6 or 0xM torch tensor or ndarray.

(self, boxes: NdarrayOrTensor)

Source from the content-addressed store, hash-verified

77 self.spatial_dims = spatial_dims
78
79 def __call__(self, boxes: NdarrayOrTensor) -> NdarrayOrTensor:
80 """
81 Args:
82 boxes: source bounding boxes, Nx4 or Nx6 or 0xM torch tensor or ndarray.
83 """
84 return standardize_empty_box(boxes, spatial_dims=self.spatial_dims)
85
86
87class ConvertBoxMode(Transform):

Callers

nothing calls this directly

Calls 1

standardize_empty_boxFunction · 0.90

Tested by

no test coverage detected