how to calculate the entropy of an image?

4 views (last 30 days)
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 Comment
Rik
Rik on 19 Oct 2017
Edited: Rik on 19 Oct 2017
A first search on the FEX turned up this entry, and you can check out this entry as well.

Sign in to comment.

Accepted Answer

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

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!