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

Method __init__

monai/transforms/intensity/array.py:101–114  ·  view source on GitHub ↗
(
        self,
        prob: float = 0.1,
        mean: float = 0.0,
        std: float = 0.1,
        dtype: DtypeLike = np.float32,
        sample_std: bool = True,
    )

Source from the content-addressed store, hash-verified

99 backend = [TransformBackends.TORCH, TransformBackends.NUMPY]
100
101 def __init__(
102 self,
103 prob: float = 0.1,
104 mean: float = 0.0,
105 std: float = 0.1,
106 dtype: DtypeLike = np.float32,
107 sample_std: bool = True,
108 ) -> None:
109 RandomizableTransform.__init__(self, prob)
110 self.mean = mean
111 self.std = std
112 self.dtype = dtype
113 self.noise: np.ndarray | None = None
114 self.sample_std = sample_std
115
116 def randomize(self, img: NdarrayOrTensor, mean: float | None = None) -> None:
117 super().randomize(None)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected