Error in double command code
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2012-11-15
Use
imshow(I1, [])
or, better yet, instead of using
I1 = double(Im1);
use
I1 = im2double(Im1);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!