problem displaying image in axes
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Walter Roberson
el 22 de Jun. de 2012
It might be useful for you to read http://www.mathworks.com/matlabcentral/answers/22208-show-figure
Respuestas (1)
Image Analyst
el 22 de Jun. de 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 comentarios
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!