histolab

Extract and preprocess whole slide images for digital pathology workflows.

Updated May 8, 2026
One-click install
npx skills add https://github.com/Zeyuyang-0420/bio-ai-research-skills --skill histolab-zeyuyang-0420
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: histolab
Source: https://github.com/Zeyuyang-0420/bio-ai-research-skills/tree/main/categories/clinical-biomedical-ai/histolab
Command: npx skills add https://github.com/Zeyuyang-0420/bio-ai-research-skills --skill histolab-zeyuyang-0420

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openslide, numpy, scikit-image, Pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the processing of whole slide images (WSI) in digital pathology, making it faster and easier to prepare data for analysis and deep learning.

Core Features & Use Cases

  • Tissue Detection and Masks: Automatically identify tissue regions and filter background artifacts.
  • Tile Extraction: Extract smaller regions from large WSI using different strategies like Random, Grid, and Score-based tiling.
  • Filters and Preprocessing: Apply various image processing filters for quality control and preprocessing.
  • Visualization: Visualize slides, masks, tile locations, and extraction quality.
  • Use Case: For example, this Skill can be used to prepare a whole slide image for a deep learning model by extracting informative tiles and applying tissue detection.

Quick Start

Use the histolab skill to extract random tiles from the whole slide image 'example.svs' and save them to the 'output' directory.

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 digital pathology?

You can extract tiles from whole slide images using random, grid, or score-based tiling strategies. This process automates the extraction of smaller regions from large WSI files, preparing data efficiently for deep learning analysis.

How do I automatically detect tissue regions in whole slide images?

Automatically detect tissue regions in whole slide images by applying tissue segmentation masks. This identifies valid tissue areas and filters out background artifacts, ensuring only informative regions are processed for downstream analysis.

Do I need OpenSlide to process whole slide images for histopathology workflows?

Yes, you need OpenSlide to process whole slide images for histopathology workflows. The processing requires OpenSlide, numpy, scikit-image, and Pillow to manipulate and analyze WSI data for tissue segmentation and tile extraction.

What is the best way to prepare whole slide image data for deep learning models?

The best way to prepare whole slide image data for deep learning models is to apply tissue detection and extract informative tiles. Using score-based tiling ensures only high-quality regions are selected, optimizing the dataset for training.

Can I visualize tissue masks and tile locations on whole slide images?

Yes, you can visualize tissue masks and tile locations on whole slide images. The visualization capabilities allow you to inspect slides, generated masks, extraction quality, and tile placements to verify the preprocessing results.

What image processing filters can I apply to whole slide images for quality control?

You can apply various image processing filters to whole slide images for quality control and preprocessing. These filters help refine the extracted tiles and tissue masks before feeding the data into deep learning pipelines.