Error in double command code
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
i have created a code using double command. However, there is no error. Nevertheless, the image did not appear.
the command:
--------------------------
Im1 = rgb2gray(image1);
I1 = double(Im1);
axes(handles.axes2);
imshow(I1);
Pls HELP.
0 comentarios
Respuesta aceptada
Walter Roberson
el 15 de Nov. de 2012
Use
imshow(I1, [])
or, better yet, instead of using
I1 = double(Im1);
use
I1 = im2double(Im1);
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!