factory¶

Helps with WSIReader selection.

Functions

fix_mangled_url_by_pathlib

Fix URl mangled by Path.

open_wsi

Open a WSIReader with an appropriate object.

try_annotation_store

Try to create an AnnotationStoreReader if the file is a .db.

try_dicom

Try to create a DICOMWSIReader if the input is a DICOM file.

try_fsspec

Try to create a FsspecJsonWSIReader if the input is a valid Zarr fsspec.

try_ngff

Try to create an NGFFWSIReader if the file is a valid NGFF Zarr.

try_ome_tiff

Try to create a TIFFWSIReader for OME-TIFF or QPTIFF formats.

try_openslide

Try to create an OpenSlideWSIReader if the input is a TIFF file.

try_tiff

Try to create a TIFFWSIReader.

verify_supported_wsi

Verify that an input image is supported.