User`s guide
17 Functions — Alphabetical List
17-46
video format supported by the device or a device configuration file (also known as a
camera file).
obj = imaq.VideoDevice(adaptorname, deviceid, format, P1, V1, ...)
Creates a VideoDevice System object, obj, with the specified property values. If an
invalid property name or property value is specified, the object is not created.
Specifying properties at the time of object creation is optional. They can also be specified
after the object is created. See the table below for a list of applicable properties.
frame = step(obj) acquires a single frame from the VideoDevice System object, obj.
[frame metadata] = step(obj) acquires a single image frame from the VideoDevice
System object, obj, plus metadata from the Kinect for Windows Depth sensor. You
can return Kinect for Windows skeleton data using the VideoDevice System object on
the Kinect Depth sensor. For information on how to do this, see “Kinect for Windows
Metadata” on page 14-7.
Properties
You can specify properties at the time of object creation, or they can be specified and
changed after the object is created. Properties that can be used with the VideoDevice
System object include:
Property Description
Device Device from which to acquire images.
Specify the image acquisition device to use to acquire
a frame. It consists of the device name, adaptor, and
device ID. The default device is the first device returned
by imaqhwinfo.
VideoFormat Video format to be used by the image acquisition device.
Specify the video format to use while acquiring the
frame. The default value of VideoFormat is the default
format returned by imaqhwinfo for the selected device.
To specify a Video Format using a device file, set the
VideoFormat property to 'From device file'
This option exists only if your device supports device
configuration files.