histolab

Process whole slide images for tissue detection, segmentation, and tile extraction.

8|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/sanand0/scientific-research --skill histolab-sanand0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: histolab
Source: https://github.com/sanand0/scientific-research/tree/main/.claude/skills/histolab
Command: npx skills add https://github.com/sanand0/scientific-research --skill histolab-sanand0

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the complex process of analyzing whole slide images (WSI) in digital pathology, enabling efficient tissue analysis and dataset preparation for machine learning.

Core Features & Use Cases

  • Whole Slide Image Processing: Load, inspect, and process gigapixel pathology slides.
  • Tissue Segmentation: Automatically detect and mask tissue regions, excluding background and artifacts.
  • Tile Extraction: Extract standardized tiles from WSIs using random, grid, or score-based strategies.
  • Image Filtering: Apply various filters for preprocessing, quality control, and stain analysis.
  • Use Case: Prepare a dataset of 512x512 pixel tiles from H&E stained breast cancer WSIs, focusing on regions with high nuclei density for training a deep learning model.

Quick Start

Use the histolab skill to extract 100 random 512x512 tiles from the slide 'slide.svs' at level 0, ensuring each tile has at least 80% tissue coverage.

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 datasets?

Tile extraction from whole slide images uses random, grid, or score-based strategies to generate standardized pixel tiles and prepare datasets for deep learning pipelines. You specify tile dimensions, zoom level, and tissue coverage thresholds.

What is tissue segmentation in digital pathology and when is it needed?

Tissue segmentation in digital pathology automatically detects and masks tissue regions in whole slide images, excluding background and artifacts. It is needed before tile extraction to ensure only relevant tissue areas are processed for dataset preparation.

Does this toolkit support loading gigapixel pathology slides with OpenSlide?

Yes, this toolkit supports loading and processing gigapixel pathology slides using OpenSlide and NumPy. It handles various WSI formats and allows inspection and tiling of these large images at specified zoom levels.

Can I filter H&E stained slides for quality control before extracting tiles?

Yes, you can apply various image filters to H&E stained slides for preprocessing, quality control, and stain analysis before extracting tiles. This ensures high-quality inputs for deep learning models by removing artifacts and standardizing tissue appearance.

What is the best way to prepare H&E stained breast cancer slides for computational pathology?

The best way to prepare H&E stained breast cancer slides is to detect tissue regions, apply quality filters, and extract standardized tiles focusing on high nuclei density areas. This creates optimized training datasets for computational pathology deep learning models.

What are the limitations of automated tissue detection in whole slide imaging?

Automated tissue detection in whole slide imaging may struggle with complex artifacts, variable staining protocols, or unusual tissue morphologies. Parameter tuning and manual review of segmentation masks are often required for optimal tile extraction results.