Borrar filtros
Borrar filtros

Displaying images in the axes of GUI

3 visualizaciones (últimos 30 días)
Sam Terry
Sam Terry el 16 de Mayo de 2013
Comentada: Kha Didjà el 26 de Jun. de 2019
I'm developing a GUI wherein i want to display images present in external functions in the axes of my GUI. (My GUI has 4 axes and i'm calling an external function which executes and needs to display four different images in the four axes i have created) Please help me out.
  1 comentario
Kha Didjà
Kha Didjà el 26 de Jun. de 2019
I've the same problem could you tell me please how did you solved it

Iniciar sesión para comentar.

Respuestas (1)

David Sanchez
David Sanchez el 16 de Mayo de 2013
When showing the images, set the 'Parent' property of the imshow function to the handle of the axis. Ex: if you have axes tagged axes1 and axes2, to display image1(2) in axes1(2):
imshow(image1,'Parent',handles.axes1);
imshow(image2,'Parent',handles.axes2);
  2 comentarios
Sam Terry
Sam Terry el 16 de Mayo de 2013
can i write the above code in my external function?
yeshwanth manhcuri
yeshwanth manhcuri el 21 de Mayo de 2013
no no check out the ,tags in the property inspector for the axes....if they are axes 1 n axes2 u can implement it.....

Iniciar sesión para comentar.

Categorías

Más información sobre Display Image 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!

Translated by