Imshow in appdesigner?
显示 更早的评论
Looking to convert a GUI into the AppDesigner platform, I am not able to execute the 'imshow' utility in appdesigner, any ideas?
采纳的回答
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 个评论
Thanks!
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
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
2018-6-28
移动:DGM
2024-1-3
Thank you! Now is clear for me!
on using this command i only getting a black image
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
thank you
Thank you
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
