The Gray-Level Size Zone Matrix (GLSZM) is a rotation-invariant, higher-order statistical matrix that quantifies texture heterogeneity by measuring the size of homogeneous connected components. Unlike the Gray-Level Run Length Matrix (GLRLM), which tracks collinear runs in specific directions, the GLSZM identifies contiguous two-dimensional or three-dimensional regions where all voxels share the same discretized gray-level intensity. The resulting matrix, P(i,j), encodes the frequency of a zone with gray level i and size j, providing a structural fingerprint of the underlying tissue architecture.
Glossary
Gray-Level Size Zone Matrix (GLSZM)

What is Gray-Level Size Zone Matrix (GLSZM)?
A Gray-Level Size Zone Matrix (GLSZM) is a quantitative texture analysis method that counts the number of connected regions—or zones—of identical voxel intensity within a medical image, where the size of each zone is recorded independently of its rotational orientation.
From the GLSZM, critical derived metrics such as Zone Percentage (ZP), Large Zone Emphasis (LZE), and Gray-Level Non-Uniformity (GLN) are calculated to characterize tumor heterogeneity. A high ZP indicates a coarse, homogeneous texture dominated by large uniform zones, while a low ZP suggests fine, granular heterogeneity often associated with aggressive tumor phenotypes. This matrix is a cornerstone of radiomic feature extraction, providing robust, non-invasive biomarkers for predicting clinical outcomes in oncology when combined with feature selection methods like LASSO and harmonization techniques such as ComBat.
Core Characteristics of GLSZM
The Gray-Level Size Zone Matrix (GLSZM) quantifies the size of homogeneous connected regions of identical voxel intensity, independent of their rotational orientation. It is a cornerstone of radiomic texture analysis for characterizing tumor heterogeneity.
Rotationally Invariant Quantification
Unlike the Gray-Level Run Length Matrix (GLRLM) which requires computation across multiple directional angles, the GLSZM is inherently rotationally invariant. It counts the number of connected voxels sharing the same gray level in a 3D neighborhood regardless of their spatial orientation. This property makes it uniquely suited for analyzing amorphous tumor structures where a dominant growth direction does not exist, ensuring consistent feature values irrespective of patient positioning or scan alignment.
Matrix Construction and Zones
A zone is defined as a connected group of voxels that all share the exact same discretized gray-level intensity. Connectivity is typically defined using a 26-connected neighborhood in 3D space. The resulting matrix P(i,j) stores the frequency of a zone with gray level i and size j. Key structural implications:
- Diagonal entries represent small, isolated homogeneous pockets
- Off-diagonal entries capture large, contiguous regions of uniform intensity
- The matrix inherently captures both micro-heterogeneity (many small zones) and macro-heterogeneity (few large zones)
Zone Percentage (ZP)
Zone Percentage measures the homogeneity of zone sizes across the entire region of interest. It is calculated as the fraction of the total number of zones that correspond to the most prevalent zone size. A high ZP value indicates a coarse, uniform texture where one zone size dominates the matrix. A low ZP suggests a heterogeneous texture with a wide distribution of zone sizes. This feature is particularly sensitive to necrotic cores in tumors, where large homogeneous regions of low intensity form.
Large Zone Emphasis (LZE)
Large Zone Emphasis quantifies the distribution of large homogeneous areas within the image. It is calculated by weighting zone counts by the square of their size, making it highly sensitive to the presence of expansive, uniform regions. Clinical relevance includes:
- High LZE: Indicates broad areas of uniform cellularity, often seen in well-differentiated tumors or cystic components
- Low LZE: Suggests a finely textured, highly heterogeneous tissue architecture
- LZE is a critical differentiator in distinguishing invasive ductal carcinoma from benign fibroadenomas in breast MRI
Gray-Level Non-Uniformity (GLN)
Gray-Level Non-Uniformity measures the variability of intensity values across the image by assessing the distribution of zones among different gray levels. A low GLN value signifies that zones are evenly distributed across all intensity bins, indicating isotropic intensity distribution. A high GLN value means certain gray levels dominate the zone count, suggesting intensity heterogeneity. This feature is instrumental in quantifying metabolic activity in PET/CT fusion imaging, where standardized uptake value (SUV) discretization reveals functional tumor sub-volumes.
Small Zone Emphasis (SZE)
Small Zone Emphasis is the inverse counterpart to LZE, designed to highlight fine, granular textures. It weights smaller zones more heavily in its calculation, making it a sensitive detector of micro-calcifications and early fibrotic changes. Key characteristics:
- Elevated SZE correlates with trabecular bone deterioration in osteoporosis screening
- In lung CT, high SZE values are associated with ground-glass opacity patterns indicative of early-stage adenocarcinoma
- SZE is mathematically normalized to ensure comparability across different ROI volumes
GLSZM vs. Other Texture Matrices
Comparative analysis of Gray-Level Size Zone Matrix against other core radiomic texture matrices based on spatial relationship quantification, rotational invariance, and clinical applicability.
| Feature | GLSZM | GLCM | GLRLM | GLDM | NGTDM |
|---|---|---|---|---|---|
Spatial Relationship | Non-contiguous zones of identical intensity | Pairwise pixel co-occurrence at fixed offset | Collinear consecutive runs of identical intensity | Center-neighbor dependence within distance | Average neighbor intensity difference |
Rotational Invariance | |||||
Matrix Dimensionality | Ng × Ns (gray levels × zone sizes) | Ng × Ng (gray-level pairs) | Ng × Nr (gray levels × run lengths) | Ng × Nd (gray levels × dependencies) | Ng × 1 (gray levels × sum of differences) |
Captures Heterogeneity | Regional homogeneity and coarse texture | Local contrast and directionality | Linear structural roughness | Local intensity uniformity | Overall coarseness and busyness |
Computational Complexity | Moderate | High (multiple offsets) | Moderate | Low | Low |
Sensitivity to Discretization | High | Moderate | High | Moderate | Low |
Key Derived Metric | Zone Percentage (ZP) | Contrast | Short Run Emphasis (SRE) | Dependence Non-Uniformity (DN) | Coarseness |
IBSI Standardization |
Frequently Asked Questions
Clear answers to common questions about the Gray-Level Size Zone Matrix, its computation, and its role in quantifying tumor heterogeneity.
A Gray-Level Size Zone Matrix (GLSZM) is a texture analysis matrix that quantifies the size of homogeneous connected regions of identical voxel intensity within a medical image, independent of their rotational orientation. Unlike the Gray-Level Run Length Matrix (GLRLM), which measures linear runs in specific directions, the GLSZM counts zones—contiguous two-dimensional or three-dimensional connected components where all voxels share the same discretized gray level. The algorithm scans the entire Region of Interest (ROI) and, for each gray level, identifies all spatially connected groups of voxels at that intensity. The resulting matrix has rows representing gray levels and columns representing zone sizes, with each cell P(i,j) containing the count of zones of size j at gray level i. This rotationally invariant approach makes GLSZM particularly valuable for characterizing structural heterogeneity in tumors where the orientation of textural patterns is clinically irrelevant.
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.
Related Terms
Understanding the Gray-Level Size Zone Matrix requires familiarity with the foundational texture matrices, preprocessing steps, and derived features that contextualize its role in quantifying regional heterogeneity.

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