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)
| 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: |