A Whole Slide Image (WSI) is a complete digital scan of a glass histopathology slide, captured at microscopic resolution using a specialized scanner. This process generates a gigapixel image—often exceeding 100,000 pixels in each dimension—that faithfully represents the entire tissue sample, enabling pathologists to transition from physical microscopes to high-resolution computer displays for primary diagnosis.
Glossary
Whole Slide Image (WSI)

What is Whole Slide Image (WSI)?
A Whole Slide Image is a high-resolution digital replica of an entire glass pathology slide, creating a gigapixel file that enables computational analysis and remote diagnosis.
WSIs are stored in multi-resolution pyramidal file formats, where a base high-resolution layer is accompanied by sequentially downsampled versions, allowing for smooth pan-and-zoom navigation akin to digital maps. This architecture is foundational to computational pathology, as it permits automated analysis via deep learning algorithms that can detect subtle morphological patterns invisible to the human eye.
Key Characteristics of a WSI
A Whole Slide Image is not merely a large photograph; it is a multi-layered, high-dimensional data structure engineered for computational analysis. The following characteristics define its technical complexity and diagnostic utility.
Gigapixel Pyramid Structure
A WSI is stored as a multi-resolution pyramid, not a flat file. The base layer holds the highest resolution (e.g., 0.25 microns per pixel), while successive downsampled layers enable smooth pan-and-zoom navigation. This structure mimics the experience of adjusting microscope magnification, allowing algorithms to efficiently switch between coarse tissue context and fine cellular detail without loading the entire gigapixel image into memory.
Multi-Channel Spectral Data
While Brightfield H&E is the standard, a WSI can encode far more than RGB. Advanced scanners capture multispectral or fluorescent channels (e.g., DAPI, FITC, Cy5) for multiplexed immunohistochemistry (IHC). Each channel represents a distinct biomarker, and computational deconvolution algorithms can mathematically separate overlapping stain spectra to quantify individual protein expressions on a per-pixel basis.
High-Dimensional Z-Stacking
Unlike a static 2D photo, many scanners capture Z-stacks—multiple focal planes at varying depths through the tissue section. This volumetric data is crucial for cytology specimens where cells float in 3D space. Extended Depth of Field (EDF) algorithms then fuse the sharpest pixels from each plane into a single, all-in-focus 2D composite, ensuring no diagnostic information is lost due to topographical unevenness.
Rich Metadata Encoding
A WSI file encapsulates a vast array of structured metadata beyond pixel data. This includes scanner calibration profiles, objective lens power, micron-per-pixel resolution, and often a label image—a separate macro scan of the slide's physical barcode. In formats like OME-TIFF, this extends to XML-encoded experimental conditions, linking the image directly to the laboratory information system (LIS) for full traceability.
Tiled Tiling Architecture
Internally, the pyramid layers are subdivided into discrete rectangular tiles (commonly 256x256 or 512x512 pixels). This tiling is the critical enabler for parallel processing; a Patch Extraction engine can fetch thousands of non-contiguous tiles simultaneously across a GPU cluster without decoding the entire image. This architecture transforms a massive file into a random-access database of visual tokens.
Proprietary vs. Open Formats
WSI data exists in a fragmented ecosystem of vendor-specific formats (e.g., .svs, .ndpi, .mrxs) that often wrap TIFF structures with custom compression. Interoperability is achieved through libraries like OpenSlide, which abstract these proprietary headers into a unified API. The push toward OME-TIFF and DICOM Supplement 145 aims to standardize this, embedding clinical context directly into the pixel data for true enterprise portability.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about gigapixel digital pathology images, their structure, and their role in computational analysis.
A Whole Slide Image (WSI) is a high-resolution digital replica of an entire glass pathology slide, created by scanning the specimen in a tile-by-tile or line-scanning fashion and stitching the fields of view into a seamless, gigapixel file. The process begins when a slide scanner—equipped with high-numerical-aperture objectives and precise motorized stages—captures thousands of individual image tiles at magnifications equivalent to 20x or 40x optical microscopy. These tiles are then computationally aligned and blended using stitching algorithms to eliminate seams. The resulting image is stored in a multi-resolution gigapixel pyramid format, typically using JPEG2000 compression within proprietary file types like .svs (Aperio) or .ndpi (Hamamatsu), or the open OME-TIFF standard. A single WSI can exceed 100,000 x 100,000 pixels and consume several gigabytes of storage, making it fundamentally different from standard digital photographs in both scale and data management requirements.
Related Terms
Core computational and analytical concepts that form the foundation of gigapixel digital pathology workflows.
Patch Extraction
The process of dividing a massive whole slide image into smaller, manageable image tiles that can be processed by a convolutional neural network. Typical patch sizes range from 256x256 to 1024x1024 pixels at 20x or 40x magnification. Extraction logic must filter out background glass and adipose tissue to avoid wasting compute on non-diagnostic regions, often using Otsu thresholding on a low-resolution thumbnail.
Multiple Instance Learning (MIL)
A weakly supervised learning paradigm where a model is trained on labeled bags of instances, making it ideal for slide-level classification from patch-level data without exhaustive annotations. In WSI analysis, the entire slide is the bag and extracted patches are the instances. Only the slide-level diagnosis is required for training, eliminating the bottleneck of pixel-level annotation.
Stain Normalization
A computational process that standardizes the color appearance of histological images to reduce variability between different laboratory staining protocols and scanner hardware. Techniques include Macenko color deconvolution, Reinhard normalization, and cycle-GAN-based approaches. Without normalization, a model may learn spurious color correlations rather than morphological features.
Heatmap Generation
The process of rendering a color-coded probability overlay on a whole slide image to visualize the spatial distribution of model predictions or regions of high diagnostic interest. Heatmaps map per-patch inference scores back to their original spatial coordinates, allowing pathologists to visually verify which tissue regions drove the model's classification decision.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us