GLCMFeatures(glcm)

Vectorized GLCM Texture features calculations
1.7K 次下载
更新 2016/2/16

查看许可证

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)

引用格式

Patrik Brynolfsson (2026). GLCMFeatures(glcm) (https://ww2.mathworks.cn/matlabcentral/fileexchange/55034-glcmfeatures-glcm), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

参考作品: GLCM texture features

版本 已发布 发行说明
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
"Sum of square: variance", "sum variance" and "difference variance" have been correctly implemented. "difference average" has been added for completeness.

1.0.0.0

Changed title

Speed comparison chart added