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

Method get_mpp

monai/data/wsi_reader.py:660–669  ·  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

658 return self.reader.get_file_path(wsi)
659
660 def get_mpp(self, wsi, level: int) -> tuple[float, float]:
661 """
662 Returns the micro-per-pixel resolution of the whole slide image at a given level.
663
664 Args:
665 wsi: a whole slide image object loaded from a file.
666 level: the level number where the mpp is calculated.
667
668 """
669 return self.reader.get_mpp(wsi, level)
670
671 def get_wsi_at_mpp(
672 self, wsi, mpp: float | tuple[float, float], atol: float = 0.00, rtol: float = 0.05

Callers 1

test_resolution_mppMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_resolution_mppMethod · 0.76