GLCM Entropy Feature Calculation
Show older comments
This is my Entropy calculation from glcm matrix

but the result is

the entropy formula i used here is correct ?
1 Comment
ARCHANA KUMARI
on 23 Apr 2020
What is your project topic?
Accepted Answer
More Answers (1)
Luis Frauca Trasobares
on 4 Mar 2024
0 votes
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).
Categories
Find more on Texture Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!