histolab

Extract and preprocess whole-slide-image tiles for digital pathology pipelines.

7|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/wsxwj123/opencode-skills-backup --skill histolab-wsxwj123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: histolab
Source: https://github.com/wsxwj123/opencode-skills-backup/tree/main/histolab
Command: npx skills add https://github.com/wsxwj123/opencode-skills-backup --skill histolab-wsxwj123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Histolab provides a lightweight toolkit to process whole slide images by automatically detecting tissue, extracting representative tiles, and performing basic stain normalization to accelerate dataset preparation and quick tile-based analyses.

Core Features & Use Cases

  • Tissue detection and masking to isolate tissue regions
  • Tile extraction strategies (RandomTiler, GridTiler, ScoreTiler) for sampling, coverage, and selection of informative regions
  • Basic preprocessing and visualization hooks for quality control and downstream analysis
  • Real-world use cases include training data curation for deep learning, quick slide QA, and reproducible tile pipelines

Quick Start

Load a slide, configure a RandomTiler with tile_size=(512, 512) and n_tiles=100 at level 0, then run the tiler to extract tiles.

Frequently Asked Questions about histolab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract tiles from whole slide images for deep learning training data?

Extract WSI tiles by loading a slide and configuring a tiler like RandomTiler with specific tile dimensions and counts. This automates tissue detection and tile extraction to build ready-to-use datasets for digital pathology workflows.

What is the best way to detect tissue regions in digital pathology slides?

Tissue detection in digital pathology slides is best handled by applying automated tissue masking to isolate regions. This isolates relevant tissue areas from the whole slide image to accelerate dataset preparation and quick tile-based analyses.

Can I sample specific informative regions from a whole slide image?

Yes, you can sample specific informative regions by using the ScoreTiler to select the most representative areas. This tile extraction strategy targets high-information regions rather than basic grid coverage or random sampling.

How do I perform stain normalization on extracted WSI tiles?

Perform stain normalization on extracted WSI tiles by applying basic preprocessing hooks during the tile extraction pipeline. This ensures consistent color profiles across slides for quality control and downstream analysis.

Do I need any specific dependencies to process whole slide images?

No specific dependencies are required to process whole slide images, as the toolkit operates independently. You can load slides and configure tilers directly to automate tissue detection, tile extraction, and stain normalization pipelines.

What are the limitations of automated WSI tile extraction for pathology workflows?

Automated WSI tile extraction focuses on basic slide processing, tissue detection, and simple pipelines rather than complex transformations. It is designed for dataset preparation and quick slide QA rather than advanced clinical pathology diagnostics.