convert image from uint8 to double
Afficher commentaires plus anciens
Hi,
Could someone tells me the difference between 'I=im2double(I);' and 'I=double(I);'. I have a simple image called 'I' with the following properties
Name Size Bytes Class Attributes
I 512x512 262144 uint8
when I apply the first command it gives me the following error message:
??? Undefined function or method 'im2double' for input arguments of type 'uint8'.
But the second command is ok. Why?
I appreciate your help
S:)
Réponse acceptée
Plus de réponses (1)
chelfremi
le 12 Fév 2017
I used
pic = imread('wk2.gif');
im2double(pic);
My original pic was Unit8

Then it gives me:

3 commentaires
Harizi Amira
le 25 Mai 2019
Where can I put this instruction to get the result in all cells ?

Walter Roberson
le 25 Mai 2019
ffdouble = cellfun(@im2double, ff, 'uniform', 0);
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!