Why does the Image Processing Toolbox (R2007a) ENTROPY command return a value of zero when the image is cast as a double?
Show older comments
Currently, the documentation for the ENTROPY function states that it should work with images of data type double. However, if an image 'I' is explicitly cast as a double by:
I=double(I);
ENTROPY returns a value of zero due to scaling issues. The code I used is as follows:
I = rgb2gray(ColorImage); % use any image
ent1 = entropy(I);
I = double(I);
ent2 = entropy(I);
Accepted Answer
More Answers (0)
Categories
Find more on Image Preview and Device Configuration 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!