VirtualWSIReader¶
- class VirtualWSIReader(input_img, mpp=None, power=None, info=None, mode='rgb')[source]¶
Class for reading non-pyramidal images e.g., visual fields.
Supported formats:
.jpg
.png
This reader uses
tiatoolbox.utils.image.sub_pixel_read()to allow reading low resolution images as if they are larger i.e. with ‘virtual’ pyramid resolutions. This is useful for reading low resolution masks as if they were stretched to overlay a higher resolution WSI.Extra key-word arugments given to
read_region()andread_bounds()will be passed tosub_pixel_read().- img¶
- Type
- Parameters
input_img (str, pathlib.Path, ndarray) – input path to WSI.
info (WSIMeta) – Metadata for the virtual wsi.
mode (str) – Mode of the input image. Default is ‘rgb’. Allowed values are: rgb, bool.
mpp (Optional[Tuple[numbers.Number, numbers.Number]]) –
power (Optional[numbers.Number]) –
- Return type
None
Methods
read_boundsread_rectAttributes