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

Method _get_patch

monai/inferers/splitter.py:378–380  ·  view source on GitHub ↗
(self, inputs: Any, location: tuple[int, ...], patch_size: tuple[int, ...])

Source from the content-addressed store, hash-verified

376 raise ValueError(f"Unsupported reader type: {reader}.")
377
378 def _get_patch(self, inputs: Any, location: tuple[int, ...], patch_size: tuple[int, ...]) -> Any:
379 patch, _ = self.reader.get_data(wsi=inputs, location=location, size=patch_size) # type: ignore
380 return patch[None]
381
382 def get_input_shape(self, inputs: Any) -> tuple:
383 """

Callers 1

__call__Method · 0.95

Calls 1

get_dataMethod · 0.45

Tested by

no test coverage detected