(
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,
)
| 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 |
nothing calls this directly
no test coverage detected