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

Method __init__

monai/transforms/croppad/dictionary.py:690–701  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        roi_size: Sequence[int] | int,
        max_roi_size: Sequence[int] | int | None = None,
        random_center: bool = True,
        random_size: bool = False,
        allow_missing_keys: bool = False,
        lazy: bool = False,
    )

Source from the content-addressed store, hash-verified

688 """
689
690 def __init__(
691 self,
692 keys: KeysCollection,
693 roi_size: Sequence[int] | int,
694 max_roi_size: Sequence[int] | int | None = None,
695 random_center: bool = True,
696 random_size: bool = False,
697 allow_missing_keys: bool = False,
698 lazy: bool = False,
699 ) -> None:
700 cropper = RandSpatialCrop(roi_size, max_roi_size, random_center, random_size, lazy=lazy)
701 super().__init__(keys, cropper=cropper, allow_missing_keys=allow_missing_keys, lazy=lazy)
702
703
704class RandScaleCropd(RandCropd):

Callers

nothing calls this directly

Calls 2

RandSpatialCropClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected