Args: boxes: source bounding boxes, Nx4 or Nx6 or 0xM torch tensor or ndarray.
(self, boxes: NdarrayOrTensor)
| 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 | |
| 87 | class ConvertBoxMode(Transform): |
nothing calls this directly
no test coverage detected