User`s guide

videoinput
17-95
obj = videoinput(adaptorname,deviceID,format,P1,V1,...) creates a video
input object obj with the specified property values. If an invalid property name or
property value is specified, the object is not created.
The property name and property value pairs can be in any format supported by the set
function, i.e., parameter/value string pairs, structures, or parameter/value cell array
pairs.
To view a complete listing of video input object functions and properties, use the
imaqhelp function.
imaqhelp videoinput
In the documentation, see “Image Acquisition Toolbox Properties” on page 5-28 for links
to the property reference pages.
Examples
Construct a video input object.
obj = videoinput('matrox', 1);
Select the source to use for acquisition.
obj.SelectedSourceName = 'input1'
View the properties for the selected video source object.
src_obj = getselectedsource(obj);
get(src_obj)
Preview a stream of image frames.
preview(obj);
Acquire and display a single image frame.
frame = getsnapshot(obj);
image(frame);
Remove video input object from memory.
delete(obj);