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

Method __init__

monai/transforms/intensity/dictionary.py:814–825  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        subtrahend: NdarrayOrTensor | None = None,
        divisor: NdarrayOrTensor | None = None,
        nonzero: bool = False,
        channel_wise: bool = False,
        dtype: DtypeLike = np.float32,
        allow_missing_keys: bool = False,
    )

Source from the content-addressed store, hash-verified

812 backend = NormalizeIntensity.backend
813
814 def __init__(
815 self,
816 keys: KeysCollection,
817 subtrahend: NdarrayOrTensor | None = None,
818 divisor: NdarrayOrTensor | None = None,
819 nonzero: bool = False,
820 channel_wise: bool = False,
821 dtype: DtypeLike = np.float32,
822 allow_missing_keys: bool = False,
823 ) -> None:
824 super().__init__(keys, allow_missing_keys)
825 self.normalizer = NormalizeIntensity(subtrahend, divisor, nonzero, channel_wise, dtype)
826
827 def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, NdarrayOrTensor]:
828 d = dict(data)

Callers

nothing calls this directly

Calls 2

NormalizeIntensityClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected