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

Method __init__

monai/transforms/intensity/dictionary.py:849–858  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        threshold: float,
        above: bool = True,
        cval: float = 0.0,
        allow_missing_keys: bool = False,
    )

Source from the content-addressed store, hash-verified

847 backend = ThresholdIntensity.backend
848
849 def __init__(
850 self,
851 keys: KeysCollection,
852 threshold: float,
853 above: bool = True,
854 cval: float = 0.0,
855 allow_missing_keys: bool = False,
856 ) -> None:
857 super().__init__(keys, allow_missing_keys)
858 self.filter = ThresholdIntensity(threshold, above, cval)
859
860 def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, NdarrayOrTensor]:
861 d = dict(data)

Callers

nothing calls this directly

Calls 2

ThresholdIntensityClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected