How to obtain entropy image, inverse difference image ,contrast image, energy image, etc from the GLCM features ..?

Illustration
harshal j - 2022-03-07T11:22:11+00:00
Question: How to obtain entropy image, inverse difference image ,contrast image, energy image, etc from the GLCM features ..?

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  

Expert Answer

Profile picture of John Williams John Williams answered . 2025-11-20

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)

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!