フィルターのクリア

What is the difference between videoinput and imaq.VideoDevice?

3 ビュー (過去 30 日間)
Chris
Chris 2013 年 7 月 5 日
There are two ways to initialize a video object:
vid = videoinput('winvideo');
and
vid = imaq.VideoDevice('winvideo')
What's the difference? Is one better suited for high-speed acquisition?
  2 件のコメント
Filippos Sdralias
Filippos Sdralias 2015 年 6 月 20 日
What is winvideo?
Shankar Subramanian
Shankar Subramanian 2015 年 7 月 2 日
Adaptor name used to support OS Generic Video interface devices - (More info)

サインインしてコメントする。

採用された回答

David Tarkowski
David Tarkowski 2013 年 7 月 7 日
The object returned by imaq.VideoDevice is a System Object and is designed for stream processing. The object returned by videoinput is just a normal MATLAB object. Under the covers, both objects use the same fundamental implementation so both acquire the same data at the same rate.
Since the imaq.VideoDevice is a System Object, it supports code generation with MATLAB Coder. However, since System Objects are designed for stream processing, it does not support buffered acquisition or events, which the videoinput object does. If you need code generation, you should use the imaq.VideoDevice interface. If you need buffered acquisition or events, you should use videoinput. Otherwise, you can choose either interface.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by