MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __init__

Method __init__

monai/transforms/post/dictionary.py:297–308  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        min_size: int = 64,
        connectivity: int = 1,
        independent_channels: bool = True,
        by_measure: bool = False,
        pixdim: Sequence[float] | float | np.ndarray | None = None,
        allow_missing_keys: bool = False,
    )

Source from the content-addressed store, hash-verified

295 backend = RemoveSmallObjects.backend
296
297 def __init__(
298 self,
299 keys: KeysCollection,
300 min_size: int = 64,
301 connectivity: int = 1,
302 independent_channels: bool = True,
303 by_measure: bool = False,
304 pixdim: Sequence[float] | float | np.ndarray | None = None,
305 allow_missing_keys: bool = False,
306 ) -> None:
307 super().__init__(keys, allow_missing_keys)
308 self.converter = RemoveSmallObjects(min_size, connectivity, independent_channels, by_measure, pixdim)
309
310 def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, NdarrayOrTensor]:
311 d = dict(data)

Callers

nothing calls this directly

Calls 2

RemoveSmallObjectsClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected