problem displaying image in axes
조회 수: 5 (최근 30일)
이전 댓글 표시
I am currently working on a gui which have :
- 1 push button to load image and 1 axes to display it.
- 1 push button to convert the loaded rgb image to ycbcr and an axes to display it.
- 1 push button to apply k means to the ycbcr image and then convert it back to rgb and an axes to display it.
upto conversion of the image to ycbcr (i.e upto 2nd point) it is working fine .
problem is that when i press 3rd push button to apply k means still i got no problem but it shows a blank white image in 3rd axes instead of showing the image on which i applied k means.
i have also checked my k means code in command window and it working fine and displaying the desired image but when i transfer it to gui im having problems..
please help guys !!
댓글 수: 1
Walter Roberson
2012년 6월 22일
It might be useful for you to read http://www.mathworks.com/matlabcentral/answers/22208-show-figure
답변 (1개)
Image Analyst
2012년 6월 22일
Check the class and ranges of your variables. Make sure they're all legal. In particular if you display a double image it must be in the range 0-1 unless you use the [] option in imshow.
imshow(doubleImage, []);
댓글 수: 3
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!