GLCM Entropy Feature Calculation

This is my Entropy calculation from glcm matrix
but the result is
the entropy formula i used here is correct ?

 Respuesta aceptada

Image Analyst
Image Analyst el 6 de Feb. de 2019

0 votos

I believe you can use the built-in graycoprops() to get that value.

5 comentarios

Vincy Y
Vincy Y el 7 de Feb. de 2019
Thank you sir/Madam, but i have matlab R2009b, the graycoprobs() only return 4 features(energy,correlation contrast, homogeneity. So i need a code using for loop to calculate entropy without using built-in functions.
Image Analyst
Image Analyst el 10 de Feb. de 2019
Use entropyfilt() or entropy().
REHAN AHMAD
REHAN AHMAD el 28 de Mzo. de 2020
how to calculate GLCM feature correlationmatlab
ARCHANA KUMARI
ARCHANA KUMARI el 23 de Abr. de 2020
What is your project topic?
Image Analyst
Image Analyst el 4 de Mzo. de 2024
Since you say you must have it without using built-in functions, then it must be your homework and I'm sure your professor would not allow anyone turning in my/our code as their own. Anyway, since it's been 4 years, I'm sure it's already been done and turned in. For others who want a demo on how to compute the gray level cooccurrence matrix using the built-in function, see attached m-file.

Iniciar sesión para comentar.

Más respuestas (1)

Luis Frauca Trasobares
Luis Frauca Trasobares el 4 de Mzo. de 2024

0 votos

If you have your GLCM matrix correct ( you can use graycomatrix), next step is to normalized that matrix, and after that you can do your calculus or formula-code that you showed here.
Also take care of the 0 values because if you put them in the log it will be problematic (add eps to the log to solve this or control your grey levels without zero level, for example).

Preguntada:

el 6 de Feb. de 2019

Comentada:

el 4 de Mzo. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by