GLCMFeatures(glcm)
This code is a vectorized AND CORRECTED version of the code submitted by Avinash Uppuluri.
The speedup is around 20x - 100x depending on GLCM size, and about 4x speedup of Avinash Uppuluri's own vectorized version.
N.B. "Sum of square: variance", "sum variance" and "difference variance" are not correctly implemented in Avinash Uppuluri's code! I have updated these.
I have also changed the nomenclature to make things more clear:
I use the term "Inverse difference" instead of "homogeneity in matlab" or "homom".
I use the term "Homogeneity" instead of "Inverse difference moment" or "homop".
I have commented out "inverse difference normalized" and "inverse difference moment normalized", since I do not see the point of only normalizing these features. (If you want these features for continuity you can remove the comments in this code to use them)
Citar como
Patrik Brynolfsson (2026). GLCMFeatures(glcm) (https://es.mathworks.com/matlabcentral/fileexchange/55034-glcmfeatures-glcm), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Texture Analysis >
Etiquetas
Agradecimientos
Inspirado por: GLCM texture features
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 2.1.1.0 | Updated description on FileExchange |
||
| 2.1.0.0 | Updated the code and description for clarity. |
||
| 2.0.0.0 | Updated description
|
||
| 1.0.0.0 | Changed title Speed comparison chart added |
