Error in double command code

조회 수: 1 (최근 30일)
sha
sha 2012년 11월 15일
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.

채택된 답변

Walter Roberson
Walter Roberson 2012년 11월 15일
Use
imshow(I1, [])
or, better yet, instead of using
I1 = double(Im1);
use
I1 = im2double(Im1);
  댓글 수: 1
sha
sha 2012년 11월 15일
Thanks for the help!! (((:appreciate it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by