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

Method __init__

monai/transforms/intensity/dictionary.py:1010–1022  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        prob: float = 0.1,
        gamma: tuple[float, float] | float = (0.5, 4.5),
        invert_image: bool = False,
        retain_stats: bool = False,
        allow_missing_keys: bool = False,
    )

Source from the content-addressed store, hash-verified

1008 backend = RandAdjustContrast.backend
1009
1010 def __init__(
1011 self,
1012 keys: KeysCollection,
1013 prob: float = 0.1,
1014 gamma: tuple[float, float] | float = (0.5, 4.5),
1015 invert_image: bool = False,
1016 retain_stats: bool = False,
1017 allow_missing_keys: bool = False,
1018 ) -> None:
1019 MapTransform.__init__(self, keys, allow_missing_keys)
1020 RandomizableTransform.__init__(self, prob)
1021 self.adjuster = RandAdjustContrast(gamma=gamma, prob=1.0, invert_image=invert_image, retain_stats=retain_stats)
1022 self.invert_image = invert_image
1023
1024 def set_random_state(
1025 self, seed: int | None = None, state: np.random.RandomState | None = None

Callers

nothing calls this directly

Calls 2

RandAdjustContrastClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected