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

Method randomize

monai/transforms/intensity/array.py:1300–1304  ·  view source on GitHub ↗
(self, data: Any | None = None)

Source from the content-addressed store, hash-verified

1298 )
1299
1300 def randomize(self, data: Any | None = None) -> None:
1301 super().randomize(None)
1302 if not self._do_transform:
1303 return None
1304 self.gamma_value = self.R.uniform(low=self.gamma[0], high=self.gamma[1])
1305
1306 def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> NdarrayOrTensor:
1307 """

Callers 1

__call__Method · 0.95

Calls 1

randomizeMethod · 0.45

Tested by

no test coverage detected