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

Method __init__

monai/transforms/croppad/array.py:509–511  ·  view source on GitHub ↗
(self, roi_size: Sequence[int] | int, lazy: bool = False)

Source from the content-addressed store, hash-verified

507 """
508
509 def __init__(self, roi_size: Sequence[int] | int, lazy: bool = False) -> None:
510 super().__init__(lazy=lazy)
511 self.roi_size = roi_size
512
513 def compute_slices(self, spatial_size: Sequence[int]) -> tuple[slice]: # type: ignore[override]
514 roi_size = fall_back_tuple(self.roi_size, spatial_size)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected