コード例 #1
0
ファイル: dictionary.py プロジェクト: kejianping888/MONAI
 def __init__(self, keys: KeysCollection) -> None:
     """
     Args:
         keys: keys of the corresponding items to be transformed.
             See also: :py:class:`monai.transforms.compose.MapTransform`
     """
     super().__init__(keys)
     self.adder = AddChannel()
コード例 #2
0
 def __init__(self, keys):
     """
     Args:
         keys (hashable items): keys of the corresponding items to be transformed.
             See also: :py:class:`monai.transforms.compose.MapTransform`
     """
     super().__init__(keys)
     self.adder = AddChannel()
コード例 #3
0
ファイル: dictionary.py プロジェクト: brad-t-moore/MONAI
 def __init__(self, keys: KeysCollection, allow_missing_keys: bool = False) -> None:
     """
     Args:
         keys: keys of the corresponding items to be transformed.
             See also: :py:class:`monai.transforms.compose.MapTransform`
         allow_missing_keys: don't raise exception if key is missing.
     """
     super().__init__(keys, allow_missing_keys)
     self.adder = AddChannel()