- Calculate the normalized histogram of the image. This can be done using the imhist function in MATLAB.
- Calculate the energy of the image as the sum of squared elements in the normalized histogram. This can be done using the sum and .^ functions in MATLAB.
- Calculate the entropy of the image as the negative sum of the product of each element in the normalized histogram and its log-base-2. This can be done using the sum, .*, and log2 functions in MATLAB.
Whether the entropy and energy for glcm and histogram features of an image are different?? if so, how to calculate it???
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vimal Raj
am 8 Sep. 2022
Kommentiert: Vimal Raj
am 25 Feb. 2023
Is it possible to calculate energy and entropy of an image using histogram?? whether the energy and entropy of glcm features and histogram features are same or different?? if different, how to calculate that for color images.
0 Kommentare
Akzeptierte Antwort
Kartik
am 22 Feb. 2023
Hi,
Yes, it is possible to calculate the energy and entropy of an image using its histogram. However, it is important to note that the energy and entropy of a histogram are not the same as the energy and entropy of GLCM (Gray-Level Co-occurrence Matrix) features. GLCM features are calculated based on the spatial relationship of pixel pairs in an image, while histogram features are calculated based on the frequency distribution of pixel intensities.
To calculate the energy and entropy of an image using its histogram, you can follow these steps:
For color images, you can calculate the energy and entropy of each color channel separately, and then average the results to obtain a single value for the entire image.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!