Error when using imshow()

조회 수: 1 (최근 30일)
bazinga
bazinga 2014년 2월 6일
댓글: Walter Roberson 2014년 2월 10일
Hi,
I'm trying use imshow to display a colormap image, however I get the following error:
??? Error using ==> checkDisplayRange at 22 HIGH must be greater than LOW.
Error in ==> imageDisplayValidateParams at 57 common_args.DisplayRange = checkDisplayRange(common_args.DisplayRange,mfilename);
Error in ==> imageDisplayParseInputs at 79 common_args = imageDisplayValidateParams(common_args);
Error in ==> imshow at 199 [common_args,specific_args] = ...
What does this mean and how can I solve this problem? Any suggestions would be of help.
Thanks

답변 (1개)

Walter Roberson
Walter Roberson 2014년 2월 6일
You used imshow() in the form
imshow(YourData, [LOW HIGH])
but your HIGH value was not strictly greater than your LOW value (e.g., might have been the same value or they might have been reversed.)
  댓글 수: 2
bazinga
bazinga 2014년 2월 6일
Yes I have used that form. I have looked at the values; the maximum is 1 and minimum is 0.
Walter Roberson
Walter Roberson 2014년 2월 10일
imshow doesn't think that you passed in [0 1], but I do not know what it thinks you passed. The values passed in: what class() were they?
At the MATLAB command line, command
dbstop if error
and run again. When it stops in checkDisplayRange have a look at what values the routine things HIGH and LOW have. Then command "dbup" enough times to get to the outer level of imshow() and see the values as they were received in the routine. Then dbup again and check the values as passed.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by