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);
Best Answer