A gigapixel pyramid is a hierarchical, multi-resolution data structure that stores a Whole Slide Image (WSI) as a stack of progressively downsampled image layers, or tiles. The base of the pyramid contains the full-resolution capture, while each subsequent layer is a 2x or 4x reduced version of the one below it. This pre-computed arrangement allows a viewing interface to instantly load only the specific tiles required for the current zoom level and viewport, rather than decompressing the entire gigapixel file into memory.
Glossary
Gigapixel Pyramid

What is Gigapixel Pyramid?
A multi-resolution image storage structure that stores a WSI as a series of downsampled layers, enabling efficient pan-and-zoom navigation analogous to digital maps.
This architecture is the foundational mechanism that makes interactive navigation of massive digital pathology slides computationally feasible. By serving low-resolution layers for an overview and high-resolution tiles only for the magnified region of interest, the pyramid minimizes bandwidth and rendering latency. The structure is directly analogous to the tiled image pyramids used by digital map services, adapted here for the extreme file sizes and diagnostic precision required by computational pathology pipelines.
Key Features of Gigapixel Pyramids
A gigapixel pyramid is the foundational data structure enabling interactive navigation of massive whole slide images. It stores a base image alongside a sequence of progressively downsampled versions, allowing viewers to fetch only the data required for the current field of view and zoom level.
Multi-Resolution Tile Hierarchy
The pyramid organizes a WSI into a stack of discrete resolution levels, each stored as a grid of small, fixed-size image tiles. The base level contains the full-resolution data, while each subsequent level is a 2x or 4x downsampled version of the previous one. This structure allows a viewer to request only the specific tiles intersecting the viewport at the appropriate zoom level, avoiding the need to decompress the entire gigapixel image.
Random Access and Lazy Loading
Unlike flat image files that require sequential decoding, a pyramidal format supports random access to any tile at any resolution. A software client calculates the required tiles based on the user's pan and zoom coordinates, fetching only the data needed to render the current screen. This lazy loading mechanism ensures that navigation feels instantaneous, even when the underlying image is hundreds of thousands of pixels in diameter.
JPEG2000 and HTJ2K Compression
Gigapixel pyramids rely on advanced wavelet-based codecs like JPEG2000 to achieve high compression ratios while preserving diagnostic quality. The newer High-Throughput JPEG 2000 (HTJ2K) standard significantly reduces computational overhead, enabling faster decoding on standard hardware. These codecs support both lossless archival storage and visually lossless compression for real-time streaming, often reducing file sizes by an order of magnitude compared to raw data.
Spatial Metadata and Coordinate Systems
A gigapixel pyramid embeds precise spatial metadata, including physical pixel size (microns per pixel), objective magnification, and a global coordinate system. This allows software to map pixel coordinates to physical tissue locations and to co-register multiple slides or overlay analysis results. The coordinate system ensures that a point identified at one zoom level corresponds exactly to the same tissue location at any other resolution.
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
A gigapixel pyramid is the foundational data structure that makes interactive navigation of massive whole slide images possible. Below are answers to the most common technical questions about how these multi-resolution representations are constructed, stored, and accessed.
A gigapixel pyramid is a multi-resolution image storage structure that represents a massive image, such as a Whole Slide Image (WSI), as a series of progressively downsampled layers stacked on top of each other. The base of the pyramid is the original, highest-resolution image, which can contain billions of pixels. Each subsequent layer is a 2x, 4x, 8x, or higher downsampled version of the previous one, culminating in a single tiny thumbnail at the apex. This structure works by pre-computing these lower-resolution views so that a viewing application can instantly fetch the appropriate level of detail for the current zoom factor, analogous to how digital map services serve tiles for different zoom levels. Without this pyramid, rendering a gigapixel image would require decoding and downsampling the entire file in real-time, which is computationally prohibitive.
Related Terms
Master the foundational components that interact with the gigapixel pyramid to enable high-performance computational pathology workflows.
Whole Slide Image (WSI)
A high-resolution digital scan of an entire glass pathology slide, creating the gigapixel image file that the pyramid structure is designed to store and serve. WSIs are the raw input for computational analysis, typically captured at 40x magnification, resulting in files exceeding 100,000 x 100,000 pixels. The pyramid representation is essential because a standard WSI cannot be loaded into memory as a single flat image.
Patch Extraction
The process of dividing a massive WSI into smaller, manageable image tiles (e.g., 256x256 or 512x512 pixels) that can be processed by a convolutional neural network. The gigapixel pyramid facilitates this by allowing extraction at a specific resolution layer. Key considerations include:
- Overlap strategy to avoid boundary artifacts
- Foreground filtering to ignore glass background
- Magnification selection (20x vs 40x) based on the diagnostic task
WSI Compression
The application of encoding algorithms to reduce the massive storage footprint of a gigapixel pyramid. Modern WSI formats use JPEG2000 or HTJ2K codecs, which offer:
- Lossless compression for primary diagnosis archives
- Lossy compression (up to 10:1) for algorithmic analysis without diagnostic degradation
- Progressive decoding that aligns with pyramid level-of-detail requests Compression efficiency directly impacts storage costs and network transfer speeds in clinical PACS environments.
Heatmap Generation
The process of rendering a color-coded probability overlay on a WSI to visualize the spatial distribution of model predictions. The gigapixel pyramid enables efficient heatmap rendering by allowing the overlay to be generated at a lower resolution and then mapped back to the base layer coordinates. Common visualizations include:
- Attention heatmaps from MIL models highlighting diagnostically relevant regions
- Tumor probability maps for margin assessment
- Cell density maps for TIL quantification

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