how to calculate the entropy of an image?

4 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by