Пример #1
0
 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([]))
Пример #2
0
 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
Пример #3
0
 def __init__(self, keys: KeysCollection, mask_data: np.ndarray):
     super().__init__(keys)
     self.converter = MaskIntensity(mask_data)