Question about imshow syntax

조회 수: 3 (최근 30일)
sriharsha bulusu
sriharsha bulusu 2015년 2월 9일
댓글: David Young 2015년 2월 9일
imshow(mag(1,1),256) this is the line which is executed and the error returned is
Error using imshow>preParseInputs (line 456) The syntax IMSHOW(I,N) has been removed. Error in imshow (line 214) varargin_translated = preParseInputs(varargin{:}); pls suggest me with a solution sir and i am using matlab 2014a

답변 (1개)

David Young
David Young 2015년 2월 9일
It's not possible to be sure what you want to do. However, trying to display a single pixel mag(1,1) doesn't usually make sense. If mag is your image, perhaps you mean
imshow(mag);
or
imshow(mag, []);
or
imshow(mag, [0 255]);
The correct syntax for imshow is shown in the documentation. Referring to that is the best way to find the answer.
  댓글 수: 2
sriharsha bulusu
sriharsha bulusu 2015년 2월 9일
i have submitted a single example sir actually it is about imshow(mag(i,j),256) it is a line in walsh transform program in image processing but sir i got my answer by typing imshow(mag(i,j)) only thank you so much sir
David Young
David Young 2015년 2월 9일
I guess i and j must be vectors then. If they are scalars, mag(i,j) is a single pixel.

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

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by