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

Method __init__

monai/transforms/intensity/dictionary.py:963–972  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        gamma: float,
        invert_image: bool = False,
        retain_stats: bool = False,
        allow_missing_keys: bool = False,
    )

Source from the content-addressed store, hash-verified

961 backend = AdjustContrast.backend
962
963 def __init__(
964 self,
965 keys: KeysCollection,
966 gamma: float,
967 invert_image: bool = False,
968 retain_stats: bool = False,
969 allow_missing_keys: bool = False,
970 ) -> None:
971 super().__init__(keys, allow_missing_keys)
972 self.adjuster = AdjustContrast(gamma, invert_image, retain_stats)
973
974 def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, NdarrayOrTensor]:
975 d = dict(data)

Callers

nothing calls this directly

Calls 2

AdjustContrastClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected