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

Method get_downsample_ratio

monai/data/wsi_reader.py:645–654  ·  view source on GitHub ↗

Returns the down-sampling ratio 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 downsample ratio is calculated.

(self, wsi, level: int)

Source from the content-addressed store, hash-verified

643 return self.reader.get_size(wsi, level)
644
645 def get_downsample_ratio(self, wsi, level: int) -> float:
646 """
647 Returns the down-sampling ratio of the whole slide image at a given level.
648
649 Args:
650 wsi: a whole slide image object loaded from a file.
651 level: the level number where the downsample ratio is calculated.
652
653 """
654 return self.reader.get_downsample_ratio(wsi, level)
655
656 def get_file_path(self, wsi) -> str:
657 """Return the file path for the WSI object"""

Callers 3

__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected