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

Method __init__

monai/transforms/croppad/dictionary.py:733–744  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        roi_scale: Sequence[float] | float,
        max_roi_scale: Sequence[float] | float | 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

731 """
732
733 def __init__(
734 self,
735 keys: KeysCollection,
736 roi_scale: Sequence[float] | float,
737 max_roi_scale: Sequence[float] | float | None = None,
738 random_center: bool = True,
739 random_size: bool = False,
740 allow_missing_keys: bool = False,
741 lazy: bool = False,
742 ) -> None:
743 cropper = RandScaleCrop(roi_scale, max_roi_scale, random_center, random_size, lazy=lazy)
744 super().__init__(keys, cropper=cropper, allow_missing_keys=allow_missing_keys, lazy=lazy)
745
746
747class RandSpatialCropSamplesd(Randomizable, MapTransform, LazyTransform, MultiSampleTrait):

Callers

nothing calls this directly

Calls 2

RandScaleCropClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected