Error in double command code

1 view (last 30 days)
sha
sha on 15 Nov 2012
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.

Accepted Answer

Walter Roberson
Walter Roberson on 15 Nov 2012
Use
imshow(I1, [])
or, better yet, instead of using
I1 = double(Im1);
use
I1 = im2double(Im1);
  1 Comment
sha
sha on 15 Nov 2012
Thanks for the help!! (((:appreciate it.

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!