problem displaying image in axes
5 views (last 30 days)
Show older comments
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 Comment
Walter Roberson
on 22 Jun 2012
It might be useful for you to read http://www.mathworks.com/matlabcentral/answers/22208-show-figure
Answers (1)
Image Analyst
on 22 Jun 2012
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 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!