problem displaying image in axes
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Walter Roberson
le 22 Juin 2012
It might be useful for you to read http://www.mathworks.com/matlabcentral/answers/22208-show-figure
Réponses (1)
Image Analyst
le 22 Juin 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 commentaires
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!