필터 지우기
필터 지우기

when displaying RGB images Warning message display on command window.Is this possible to get rid of this warning?

조회 수: 1 (최근 30일)
In imuitools\private\initSize at 72
In imshow at 259
Warning: Image is too big to fit on screen; displaying at 67%
  댓글 수: 8
Image Analyst
Image Analyst 2013년 10월 12일
OK, it finally works to post an answer, so you can close off this question by Accepting my answer below.

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

채택된 답변

Image Analyst
Image Analyst 2013년 10월 12일
For some strange reason, I can't answer this question - it hangs everytime I try to post an answer, but just for this question, no others. So here's my answer:
See this code to turn off the warning:
% Turn off this warning "Warning: Image is too big to fit on screen; displaying at 33% "
% To set the warning state, you must first know the message identifier for the one warning you want to enable.
% Query the last warning to acquire the identifier. For example:
% warnStruct = warning('query', 'last');
% messageID = warnStruct.identifier
% messageID =
% Images:initSize:adjustingMag
warning('off', 'Images:initSize:adjustingMag');
When you say "i want to sort out this problem not to suppress", the only way to not have a warning (without suppressing the warning so that it does not appear in the command window) is to not display an image bigger than the screen. So you could subsample or use imresize() to create a smaller, temporary image. But that is totally unnecessary and time consuming , plus you'd just be doing explicitly yourself what imshow() does internally anyway . So the only sensible option is to suppress the warning, and I gave you code for that.

추가 답변 (0개)

카테고리

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