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

Method randomize

monai/transforms/croppad/array.py:678–680  ·  view source on GitHub ↗
(self, img_size: Sequence[int])

Source from the content-addressed store, hash-verified

676 self.max_roi_size = None
677
678 def randomize(self, img_size: Sequence[int]) -> None:
679 self.get_max_roi_size(img_size)
680 super().randomize(img_size)
681
682 def __call__(self, img: torch.Tensor, randomize: bool = True, lazy: bool | None = None) -> torch.Tensor: # type: ignore
683 """

Callers

nothing calls this directly

Calls 1

get_max_roi_sizeMethod · 0.95

Tested by

no test coverage detected