(
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,
)
| 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) |
nothing calls this directly
no test coverage detected