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

Method __init__

monai/transforms/intensity/dictionary.py:1310–1320  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        sigma1: Sequence[float] | float = 3.0,
        sigma2: Sequence[float] | float = 1.0,
        alpha: float = 30.0,
        approx: str = "erf",
        allow_missing_keys: bool = False,
    )

Source from the content-addressed store, hash-verified

1308 backend = GaussianSharpen.backend
1309
1310 def __init__(
1311 self,
1312 keys: KeysCollection,
1313 sigma1: Sequence[float] | float = 3.0,
1314 sigma2: Sequence[float] | float = 1.0,
1315 alpha: float = 30.0,
1316 approx: str = "erf",
1317 allow_missing_keys: bool = False,
1318 ) -> None:
1319 super().__init__(keys, allow_missing_keys)
1320 self.converter = GaussianSharpen(sigma1, sigma2, alpha, approx=approx)
1321
1322 def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, NdarrayOrTensor]:
1323 d = dict(data)

Callers

nothing calls this directly

Calls 2

GaussianSharpenClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected