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

Method get_power

monai/data/wsi_reader.py:260–269  ·  view source on GitHub ↗

Returns the objective power 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 objective power is calculated.

(self, wsi, level: int)

Source from the content-addressed store, hash-verified

258
259 @abstractmethod
260 def get_power(self, wsi, level: int) -> float:
261 """
262 Returns the objective power of the whole slide image at a given level.
263
264 Args:
265 wsi: a whole slide image object loaded from a file.
266 level: the level number where the objective power is calculated.
267
268 """
269 raise NotImplementedError(f"Subclass {self.__class__.__name__} must implement this method.")
270
271 @abstractmethod
272 def _get_patch(

Callers 1

get_valid_levelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected