Preview in MATLAB GUI

16 次查看(过去 30 天)
Chloe Soriano
Chloe Soriano 2022-8-19
评论: Luiz 2024-6-26
Hello, so I am creating a GUI where I want to have a preview of a video, but without it opening up in another window. Is that possible? preview() opens another window, and I tried to experiment with imshow, but I'm not sure on how to really do this. My computer is attached to a camera device and I already have that setup. Thank you!

采纳的回答

Kevin Holly
Kevin Holly 2022-8-19
You can use the command:
preview(vid, hImage);
where hImage is the handle to the image object in which the data is to be displayed.
How are you creating your UI? Are you using App Designer?
  4 个评论
Chloe Soriano
Chloe Soriano 2023-2-22
I was able to get it to display into the UIAxes; however, it only records a small, "zoomed in" section of the vidoe input and only fits a small part of the UIAxes/doesn't extend to the edges. How to fix this?
Luiz
Luiz 2024-6-26
I am also currently trying to display a preview of my webcam and hamamatsu camera into a UIAxes within my GUI. How were you able to achieve this?

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by