WSI factory provides uniform access to whole-slide images, automatically selecting the best available backend.
Supported backends (auto-selected, in order of preference):
- CuCIM — GPU-accelerated reading, used when available.
- OpenSlide — CPU fallback, broad format support.
.svs, .tiff, .tif, .ndpi, .vms, .vsi, .scn, .mrxs, and .jp2 (subject to the active backend).
Open a slide
Properties
Slides carry rich scanning metadata. Access it throughprops, and inspect the pyramid with level_dimensions and level_downsample.
Bounded vs. unbounded
Scanners capture the whole slide, but tissue occupies only part of it.bounded=True returns the tissue area; bounded=False returns the full slide.
Read a region
Specify resolution three ways — by pyramidLevel, by physical MPP, or by Magnification — and choose pixel or micrometer units.
MPP ≈ 10 / magnification (40× ≈ 0.25 MPP, 20× ≈ 0.5 MPP, 10× ≈ 1.0 MPP). Bioptimus embeddings use 0.5 MPP; tissue segmentation uses 8 MPP.
