Looking to convert a GUI into the AppDesigner platform, I am not able to execute the 'imshow' utility in appdesigner, any ideas?

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 26 de Sept. de 2016

9 votos

The ability to show images is new in R2016b, so you need to be on that release.
You use imshow by explicitly parenting to the uiaxes.
imshow('cameraman.tif','Parent',app.UIAxes)

9 comentarios

Deandra  Dsouza
Deandra Dsouza el 10 de Abr. de 2017
Thanks!
Jessica Jara
Jessica Jara el 25 de Jun. de 2018
Movida: DGM el 3 de En. de 2024
Hi! I only have a question... What is 'Parent' and for what can be use?
Thank You!
Walter Roberson
Walter Roberson el 25 de Jun. de 2018
Movida: DGM el 3 de En. de 2024
'Parent' is which container object the imshow should cause the image to be displayed into. imshow() requires that its parent be either a traditional axes or a UI Axes.
Jessica Jara
Jessica Jara el 28 de Jun. de 2018
Movida: DGM el 3 de En. de 2024
Thank you! Now is clear for me!
Aju George
Aju George el 7 de Jul. de 2018
on using this command i only getting a black image
Image Analyst
Image Analyst el 7 de Jul. de 2018
Try reading it into an image variable first with imread(). Then check the values to make sure they're not all zero. Maybe you accidentally overwrote cameraman.tif when you were doing your coding experimentation.
Aju George
Aju George el 9 de Jul. de 2018
thankyou
I = imshow('image.jpg', 'Parent', app.image_view)
app.image_view.XLim = [0 I.XData(2)];
app.image_view.YLim = [0 I.YData(2)];
this code worked for me
Hui Xu
Hui Xu el 7 de En. de 2021
thank you
Shanmugasundari Mariappan
Shanmugasundari Mariappan el 3 de En. de 2024
Thank you

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 26 de Sept. de 2016

Movida:

DGM
el 3 de En. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by