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

Method get_size

monai/data/wsi_reader.py:136–145  ·  view source on GitHub ↗

Returns the size (height, width) of the whole slide image at a given level. Args: wsi: a whole slide image object loaded from a file. level: the level number where the size is calculated.

(self, wsi, level: int)

Source from the content-addressed store, hash-verified

134
135 @abstractmethod
136 def get_size(self, wsi, level: int) -> tuple[int, int]:
137 """
138 Returns the size (height, width) of the whole slide image at a given level.
139
140 Args:
141 wsi: a whole slide image object loaded from a file.
142 level: the level number where the size is calculated.
143
144 """
145 raise NotImplementedError(f"Subclass {self.__class__.__name__} must implement this method.")
146
147 def _find_closest_level(
148 self, name: str, value: tuple, value_at_levels: Sequence[tuple], atol: float, rtol: float

Callers 1

get_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected