Why does the Image Processing Toolbox (R2007a) ENTROPY command return a value of zero when the image is cast as a double?
Ältere Kommentare anzeigen
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);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!