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

Method get_level_count

monai/data/wsi_reader.py:220–228  ·  view source on GitHub ↗

Returns the number of levels in the whole slide image. Args: wsi: a whole slide image object loaded from a file.

(self, wsi)

Source from the content-addressed store, hash-verified

218
219 @abstractmethod
220 def get_level_count(self, wsi) -> int:
221 """
222 Returns the number of levels in the whole slide image.
223
224 Args:
225 wsi: a whole slide image object loaded from a file.
226
227 """
228 raise NotImplementedError(f"Subclass {self.__class__.__name__} must implement this method.")
229
230 @abstractmethod
231 def get_downsample_ratio(self, wsi, level: int) -> float:

Callers 1

get_valid_levelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected