Inferensys

Glossary

Neighboring Gray Tone Difference Matrix (NGTDM)

A texture matrix that quantifies the average absolute difference between a voxel's intensity and the mean intensity of its surrounding neighbors, capturing properties like coarseness and contrast.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
TEXTURE ANALYSIS

What is Neighboring Gray Tone Difference Matrix (NGTDM)?

A second-order texture matrix quantifying the average absolute difference between a voxel's intensity and the mean intensity of its surrounding neighbors within a defined distance.

The Neighboring Gray Tone Difference Matrix (NGTDM) is a texture analysis matrix that quantifies the average absolute difference between a voxel's intensity and the mean intensity of its surrounding neighbors. Unlike co-occurrence matrices, NGTDM captures the visual property of coarseness by measuring how much each voxel deviates from its local neighborhood average, making it sensitive to the rate of intensity change in a region of interest.

From the NGTDM, five primary features are derived: Coarseness, Contrast, Busyness, Complexity, and Strength. Coarseness reflects the spatial rate of intensity change, with higher values indicating smoother textures. Busyness measures rapid intensity fluctuations, while Complexity indicates the presence of many distinct visual patterns. These features are standardized under the Image Biomarker Standardisation Initiative (IBSI) guidelines to ensure reproducibility across different imaging platforms and clinical studies.

TEXTURE MATRIX MECHANICS

Core NGTDM Features

The Neighboring Gray Tone Difference Matrix (NGTDM) quantifies the absolute intensity difference between a central voxel and the average of its neighbors, capturing coarseness, contrast, and busyness without directional dependence.

01

Coarseness

Quantifies the spatial rate of intensity change. Coarseness is the inverse of the summed NGTDM probabilities; a high value indicates a spatially uniform, coarse texture with minimal intensity variation between neighbors. Low coarseness signals a fine, rapidly changing texture. This metric is fundamental for distinguishing homogeneous tissue from heterogeneous tumor microenvironments.

02

Contrast

Measures the dynamic range of intensity differences between neighboring voxels. High contrast indicates sharp, distinct boundaries between tissue types or the presence of calcifications. The calculation weights the squared difference between gray levels by their occurrence probability, making it sensitive to high-magnitude intensity transitions that often correlate with aggressive pathology.

03

Busyness

Captures the spatial frequency of intensity changes. Busyness is computed as the sum of NGTDM probabilities multiplied by their respective gray-level differences, normalized by the total number of contributing voxels. A high busyness value reflects rapid, frequent pixel-to-pixel fluctuations, characteristic of highly heterogeneous or necrotic tissue regions.

04

Complexity

Evaluates the information content and structural intricacy of the texture. Complexity sums the weighted absolute differences between gray-level pairs, where weights are the normalized NGTDM probabilities. High complexity indicates non-uniform, intricate patterns with many distinct intensity transitions, often observed in invasive tumor margins with infiltrative growth patterns.

05

Strength

Represents the overall emphasis of high-intensity primitives within the texture. Strength is calculated by summing the product of probability-weighted squared gray-level differences, normalized by the sum of all probabilities. A high strength value indicates that bright, well-defined structures dominate the region, useful for identifying enhancing lesions in contrast-enhanced imaging.

NGTDM EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about the Neighboring Gray Tone Difference Matrix and its role in quantifying image texture.

The Neighboring Gray Tone Difference Matrix (NGTDM) is a texture analysis matrix that quantifies the average absolute difference between the intensity of a central voxel and the mean intensity of its surrounding neighbors within a defined distance. Unlike co-occurrence matrices that analyze pixel pairs, the NGTDM captures the local rate of intensity change, making it highly sensitive to the coarseness of the overall texture. The algorithm iterates through every voxel in a discretized Region of Interest (ROI). For each voxel with gray-level i, it calculates the sum of absolute differences between i and the average intensity of all neighboring voxels within a Chebyshev distance d. This sum is recorded in the matrix entry s(i), while n(i) tracks the count of voxels possessing that gray-level. The result is a one-dimensional matrix where high values indicate a coarse, uneven texture with sharp intensity transitions, and low values suggest a fine, uniform texture. This mechanism directly reflects the human visual perception of roughness and granularity in medical images.

COMPARATIVE ANALYSIS

NGTDM vs. Other Texture Matrices

A feature-level comparison of the Neighboring Gray Tone Difference Matrix against other core radiomic texture matrices defined by the Image Biomarker Standardisation Initiative (IBSI).

FeatureNGTDMGLCMGLRLMGLSZM

Spatial Relationship Quantified

Difference between voxel intensity and neighborhood mean

Joint probability of pixel pairs at a defined offset

Length of consecutive collinear pixels with same intensity

Size of connected homogeneous regions with same intensity

Rotational Invariance

Dimensionality

2D (single slice) or 3D (volumetric)

2D (4 directions) or 3D (13 directions)

2D (4 directions) or 3D (13 directions)

2D (8-connectivity) or 3D (26-connectivity)

Primary Texture Descriptor

Coarseness

Contrast and correlation

Roughness and directionality

Homogeneity and granularity

Sensitivity to Noise

Low (averaging in neighborhood)

High (exact pair counts)

Moderate

Low (zone merging)

Computational Complexity

O(N × k), where k is neighborhood size

O(N × G²), where G is gray levels

O(N × G × L), where L is max run length

O(N × G × Z), where Z is max zone size

Number of IBSI Features

5

24

16

16

Key Clinical Application

Quantifying overall tissue coarseness in tumor heterogeneity

Detecting directional fibrotic patterns

Characterizing structural anisotropy

Measuring tumor sub-region homogeneity

Prasad Kumkar

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.