problem displaying image in axes
4 ビュー (過去 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!