def __init__(self, keys: KeysCollection, threshold: float, above: bool = True, cval: float = 0.0) -> None: super().__init__(keys) self.filter = ThresholdIntensity(threshold, above, cval)
def __init__(self, keys: Hashable, threshold: Union[int, float], above: bool = True, cval: Union[int, float] = 0): super().__init__(keys) self.filter = ThresholdIntensity(threshold, above, cval)
def __init__(self, keys, threshold, above=True, cval=0): super().__init__(keys) self.filter = ThresholdIntensity(threshold, above, cval)