FsspecJsonWSIReader¶
- class FsspecJsonWSIReader(input_img, mpp=None, power=None, cache_size=268435456)[source]¶
Reader for fsspec zarr json generated by: tiatoolbox/utils/tiff_to_fsspec.py.
The fsspec zarr json file represents a SVS or TIFF file that be accessed using byte range HTTP API.
All the information on the chunk locations in the SVS or TIFF file is outlined as byte-ranges in the JSON, so the reader requests only chunks that are needed to display requested tiles, rather than the entire SVS or TIFF file.
Initialize
FsspecJsonWSIReader
.Methods
Check if the input path is a valid Zarr fsspec JSON file.
See TIFFWSIReaderDelegate.read_bounds docs for details.
See TIFFWSIReaderDelegate.read_rect docs for details.
Attributes
- Parameters:
- static is_valid_zarr_fsspec(file_path)[source]¶
Check if the input path is a valid Zarr fsspec JSON file.
Checks if the file_path is a valid Zarr fsspec JSON file generated by: tiatoolbox/utils/tiff_to_fsspec.py
- read_bounds(bounds, resolution=0, units='level', interpolation='optimise', pad_mode='constant', pad_constant_values=0, coord_space='baseline', **kwargs)[source]¶
See TIFFWSIReaderDelegate.read_bounds docs for details.