How to calculate entropy of color image in matlab?
2 次查看(过去 30 天)
显示 更早的评论
I want to calculate entropy of color image. I found the command entropy(img) for the grayscale image. I dont know how to find entropy for a color image in matlab. Please help me.
1 个评论
回答(1 个)
Walter Roberson
2017-2-22
reshape() the image to a vector and call entropy on that.
4 个评论
Walter Roberson
2017-8-19
If you have a binary mask, then use it to index the image, and the result will be a vector; you can calculate the entropy of the vector.
Image Analyst
2017-8-19
entropyWithinMask = entropy(grayImage(mask));
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!