insert image in frame or panel?
Mostrar comentarios más antiguos
Hi I am want to create a panel or frame on the MATLAB fig such that when the user selects an image by clicking on the open button the image should open in the space that is alloted by the pre-designed frame/panel.How do I do this?
Respuestas (2)
Walter Roberson
el 29 de Abr. de 2011
ph = uipanel(....)
pax = axis('Parent',ph);
Then to put the image up,
image(pax, ImageData)
1 comentario
researcher
el 29 de Abr. de 2011
researcher
el 29 de Abr. de 2011
4 comentarios
Walter Roberson
el 29 de Abr. de 2011
Add 'Visible','off' to the axis() call.
Walter Roberson
el 29 de Abr. de 2011
Also, you should explicitly parent the imshow() against the axis you want it to show up in.
researcher
el 30 de Abr. de 2011
Walter Roberson
el 30 de Abr. de 2011
imshow(IMG,'Parent',TheAxisHandleToDrawOn)
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!