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