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

Method __init__

monai/transforms/croppad/array.py:656–668  ·  view source on GitHub ↗
(
        self,
        roi_scale: Sequence[float] | float,
        max_roi_scale: Sequence[float] | float | None = None,
        random_center: bool = True,
        random_size: bool = False,
        lazy: bool = False,
    )

Source from the content-addressed store, hash-verified

654 """
655
656 def __init__(
657 self,
658 roi_scale: Sequence[float] | float,
659 max_roi_scale: Sequence[float] | float | None = None,
660 random_center: bool = True,
661 random_size: bool = False,
662 lazy: bool = False,
663 ) -> None:
664 super().__init__(
665 roi_size=-1, max_roi_size=None, random_center=random_center, random_size=random_size, lazy=lazy
666 )
667 self.roi_scale = roi_scale
668 self.max_roi_scale = max_roi_scale
669
670 def get_max_roi_size(self, img_size):
671 ndim = len(img_size)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected