Why does the Image Processing Toolbox (R2007a) ENTROPY command return a value of zero when the image is cast as a double?
Afficher commentaires plus anciens
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);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Preview and Device Configuration dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!