how to calculate the entropy of an image?

3 visualizzazioni (ultimi 30 giorni)
Sometimes the result that I get is 0 and it is impossible. Is there any code for doing it? with the code entropy() the result is 0
  1 Commento
Rik
Rik il 19 Ott 2017
Modificato: Rik il 19 Ott 2017
A first search on the FEX turned up this entry, and you can check out this entry as well.

Accedi per commentare.

Risposta accettata

Image Analyst
Image Analyst il 19 Ott 2017
Post your image where you get zero. If it's a uint8 image, try casting to double() before sending it into entropy().

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by