def __init__(self, keys: KeysCollection, mask_key: KeysCollection, fill_mode="zero") -> None: super().__init__(keys) self.mask_key = mask_key self.converter = MaskIntensity(mask_data=np.array([]))
def __init__( self, keys: KeysCollection, mask_data: Optional[np.ndarray] = None, mask_key: Optional[str] = None, ) -> None: super().__init__(keys) self.converter = MaskIntensity(mask_data) self.mask_key = mask_key if mask_data is None else None
def __init__(self, keys: KeysCollection, mask_data: np.ndarray): super().__init__(keys) self.converter = MaskIntensity(mask_data)