Borrar filtros
Borrar filtros

How to display image in multiple plots in GUIDE

2 visualizaciones (últimos 30 días)
TheBeginner
TheBeginner el 7 de En. de 2013
Hello,
I have to axes on my GUI : axe1 and axe2 and I want to display two images in the opening function, so I do this :
axes(handles.axe1)
imagesc(image1);
axes(handles.axe2)
imagesc(image2);
The first command works well and displays the image on axes1. But the second command displays image2 on axe1 and axe2, erasing the work of the first command on axe1.
Any idea on how to avoid this?
Thank you!
  4 comentarios
Matt J
Matt J el 7 de En. de 2013
Do you do anything to handles.main_image and handles.blurred_image before attempting to display to them?
TheBeginner
TheBeginner el 7 de En. de 2013
I have tried to do it on a test-GUI and it worked well. It is strange, because I think I didn't do anything to the axis.
I will try to find what the error is, thank you!

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 7 de En. de 2013
Alternatively you don't need to call axes() and do it like this:
imshow(image1, 'Parent', handles.main_image);
imshow(image2, 'Parent', handles.blurred_image);
  1 comentario
TheBeginner
TheBeginner el 9 de En. de 2013
Actually the error was because I had the program that charged lena_blurred display an image, so it interfered with these lines.
Sorry for the annoyance, and thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Properties en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by