User`s guide
17 Functions — Alphabetical List
17-64
Examples
Create a video input object.
vidobj = videoinput('winvideo', 1, 'RGB24_640x480');
Configure several properties of the video input object.
vidobj.FramesPerTrigger = 100;
vidobj.FrameGrabInterval = 2;
vidobj.Tag = 'CAM1';
Retrieve the selected video source object associated with the video input object.
src = getselectedsource(vidobj);
Configure the properties of the video source object.
src.Contrast = 85;
src.Saturation = 125;
Save the video input object.
obj2mfile(vidobj, 'myvidobj.m', 'set', 'modified');
Delete the object and clear it from the workspace.
delete(vidobj);
clear vidobj;
Execute the M-file to recreate the object. Note that obj2mfile creates and configures
the associated video source object as well.
vidObj = myvidobj;
See Also
getselectedsource | imaqhelp | propinfo | set | videoinput