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

Method __init__

monai/transforms/intensity/array.py:1665–1681  ·  view source on GitHub ↗
(
        self,
        sigma_x: tuple[float, float] = (0.25, 1.5),
        sigma_y: tuple[float, float] = (0.25, 1.5),
        sigma_z: tuple[float, float] = (0.25, 1.5),
        prob: float = 0.1,
        approx: str = "erf",
    )

Source from the content-addressed store, hash-verified

1663 backend = GaussianSmooth.backend
1664
1665 def __init__(
1666 self,
1667 sigma_x: tuple[float, float] = (0.25, 1.5),
1668 sigma_y: tuple[float, float] = (0.25, 1.5),
1669 sigma_z: tuple[float, float] = (0.25, 1.5),
1670 prob: float = 0.1,
1671 approx: str = "erf",
1672 ) -> None:
1673 RandomizableTransform.__init__(self, prob)
1674 self.sigma_x = sigma_x
1675 self.sigma_y = sigma_y
1676 self.sigma_z = sigma_z
1677 self.approx = approx
1678
1679 self.x = self.sigma_x[0]
1680 self.y = self.sigma_y[0]
1681 self.z = self.sigma_z[0]
1682
1683 def randomize(self, data: Any | None = None) -> None:
1684 super().randomize(None)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected