跳轉至

pyHisto (top level)

import pyHisto as histo

The top level re-exports the objects you need most and the stain subpackage. Importing it loads NumPy only; heavy legacy modules are imported only when used.

Name What it is
histo.open_slide Open an OME-Zarr store or array as a Slide
histo.Slide Lazy true-RGB multi-resolution slide
histo.StainMatrix Named unit stain vectors (pyHisto.stain)
histo.stain Stain estimation, sampling, calibration and QC
histo.__version__ Installed version

pyHisto package public interface.

Use as import pyHisto as histo::

slide = histo.open_slide("slide.ome.zarr")
regions = histo.stain.propose_regions([slide], n_per_slide=12, size_px=512)
cal = histo.stain.calibrate([slide], regions)

Importing pyHisto is light (NumPy only; no histomicstk / geopandas / rasterio): the legacy modules (pyHisto.decon, pyHisto.io, ...) are imported only when used explicitly.