MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES User's Guide Page 456

  • Download
  • Add to my manuals
  • Print
  • Page
    / 574
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 455
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
Page view 455
1 2 ... 451 452 453 454 455 456 457 458 459 460 461 ... 573 574

Comments to this Manuals

No comments