cyberneticlibrary

Extract and normalize histology image tiles

histolabskillsetup L227,559
K-Dense-AI/scientific-agent-skills
What it does

Patch-based whole-slide image (WSI) analysis for digital pathology

Best for

Cancer histopathology or tissue classification when patch-level features matter more than whole-slide; enables GPU-scale training on high-res scans.

Inputs
  • · whole-slide image (.svs, .tiff)
  • · tissue type
  • · patch extraction parameters (size, stride, quality filter)
Outputs
  • · extracted image patches (PIL format)
  • · patch metadata (coordinates, tissue content %)
  • · curated dataset for ML training
Requires
  • · OpenSlide (slide reading)
  • · PIL/Pillow (patch writing)
  • · numpy (filtering)
Preconditions

Slide file accessible; patch size ≤ available slide resolution; quality_filter threshold set

Failure modes
  • · patches extracted from background/artifact regions → pollutes training set
  • · patch coordinates not stored → reproducibility lost
  • · stride too small → overlapping patches waste compute
Trust signals
  • · OpenSlide integration documented
  • · Metadata tracking (coords, tissue %) enforces reproducibility