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)
| 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""" |
no outgoing calls
no test coverage detected