How to obtain entropy image, inverse difference image ,contrast image, energy image, etc from the GLCM features ..?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
harshal j
le 11 Mar 2016
Réponse apportée : Image Analyst
le 9 Avr 2020
Hello, I am using GLCM for the texture analysis of the image, I have obtained the GLCM features like contrast,energy, entropy, inverse difference, homogeneity etc, Now i want to display the image version of these features means i want to display entropy image, inverse difference image ,contrast image, energy image, etc, But i don't know how to find it, Please help it would be great help for me. Thanks in advance
1 commentaire
swathi prabhu
le 9 Avr 2020
I too have the same problem. but this solution did not work. kindly provide the solution
Réponse acceptée
WakaDawuro
le 23 Mai 2016
Modifié(e) : Image Analyst
le 9 Avr 2020
glcm=graycomatrix(I);
F=graycoprops(glcm,{'Contrast','Homogeneity','Correlation','Energy'});
contrast=F.Contrast;
homogeneity=F.Homogeneity;
correlation=F.Correlation;
energy=F.Energy;
figure
subplot(2,2,1); imshow(contrast)
subplot(2,2,2); imshow(homogeneity)
subplot(2,2,3); imshow(correlation)
subplot(2,2,4); imshow(energy)
3 commentaires
Plus de réponses (1)
Image Analyst
le 9 Avr 2020
The 4 properties from graycoprops() are just scalars so the accepted answer gives just images that are one pixel (one value).
You might be interested in my attached GLCM demo. Click the Vote icon if you like it.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/283161/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/283162/image.png)
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!