Apply the transform to `img`, assuming `img` is channel-first and slicing doesn't apply to the channel dim.
(self, img: torch.Tensor, lazy: bool | None = None)
| 478 | ) |
| 479 | |
| 480 | def __call__(self, img: torch.Tensor, lazy: bool | None = None) -> torch.Tensor: # type: ignore[override] |
| 481 | """ |
| 482 | Apply the transform to `img`, assuming `img` is channel-first and |
| 483 | slicing doesn't apply to the channel dim. |
| 484 | |
| 485 | """ |
| 486 | lazy_ = self.lazy if lazy is None else lazy |
| 487 | return super().__call__(img=img, slices=ensure_tuple(self.slices), lazy=lazy_) |
| 488 | |
| 489 | |
| 490 | class CenterSpatialCrop(Crop): |
nothing calls this directly
no test coverage detected