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:

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() and read_bounds() will be passed to sub_pixel_read().

img
Type

numpy.ndarray

mode
Type

str

Parameters
Return type

None

Methods

read_bounds

read_rect

Attributes