image thumbnail


version (3.13 KB) by Pawel Kleczek
Vectorized GLCM texture features calculations


Updated 25 Jan 2017

View License

This code is a vectorized version of the code submitted by Avinash Uppuluri.
The speedup (tested for the same subset of features) for a 200x200x4 GLCM matrix is about:
- 300x with respect to the original, non-vectorized version
- 10x with respect to the Avinash Uppuluri's own vectorized version
- 7x with respect to the vectorized implementation by Patrik Brynolfsson
NOTE: Formulas of features used in this implementation are based solely on the paper by Haralick et al.:
Haralick RM, Shanmuga K, Dinstein I.: Textural features for image classification. IEEE Trans Syst Man Cybern 3: 610-621, 1973
Other implementations may use slightly different formulations of "Sum of square: variance", "sum variance" and "difference variance". Always make sure which version is more suitable in the given case.

Cite As

Pawel Kleczek (2021). GLCM_Features(glcm) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: GLCM texture features

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!