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

Method get_mpp

monai/data/wsi_reader.py:248–257  ·  view source on GitHub ↗

Returns the micro-per-pixel resolution 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 mpp is calculated.

(self, wsi, level: int)

Source from the content-addressed store, hash-verified

246
247 @abstractmethod
248 def get_mpp(self, wsi, level: int) -> tuple[float, float]:
249 """
250 Returns the micro-per-pixel resolution of the whole slide image at a given level.
251
252 Args:
253 wsi: a whole slide image object loaded from a file.
254 level: the level number where the mpp is calculated.
255
256 """
257 raise NotImplementedError(f"Subclass {self.__class__.__name__} must implement this method.")
258
259 @abstractmethod
260 def get_power(self, wsi, level: int) -> float:

Callers 1

get_valid_levelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected