(
self,
keys: KeysCollection,
threshold: float,
above: bool = True,
cval: float = 0.0,
allow_missing_keys: bool = False,
)
| 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) |
nothing calls this directly
no test coverage detected