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

 채택된 답변

Sean de Wolski
Sean de Wolski 2016년 9월 26일

9 개 추천

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

Deandra  Dsouza
Deandra Dsouza 2017년 4월 10일
Thanks!
Jessica Jara
Jessica Jara 2018년 6월 25일
이동: DGM 2024년 1월 3일
Hi! I only have a question... What is 'Parent' and for what can be use?
Thank You!
Walter Roberson
Walter Roberson 2018년 6월 25일
이동: DGM 2024년 1월 3일
'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 2018년 6월 28일
이동: DGM 2024년 1월 3일
Thank you! Now is clear for me!
Aju George
Aju George 2018년 7월 7일
on using this command i only getting a black image
Image Analyst
Image Analyst 2018년 7월 7일
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.
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 2021년 1월 7일
thank you
Shanmugasundari Mariappan
Shanmugasundari Mariappan 2024년 1월 3일
Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2016년 9월 26일

이동:

DGM
2024년 1월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by