User`s guide
17 Functions — Alphabetical List
17-80
snapshot
Acquire single image frame from Matrox frame grabber
Syntax
img = snapshot(m);
[img, ts] = snapshot(m);
Description
img = snapshot(m); acquires the current frame as a single image from the Matrox
frame grabber m and assigns it to the variable img. If you call snapshot in a loop, then it
returns a new frame each time.
Note: The snapshot function is for use only with the matroxcam object. To acquire
images using the videoinput object, use the getsnapshot or getdata functions.
[img, ts] = snapshot(m); acquires the current frame as a single image from the
Matrox frame grabber m and assigns it to the variable img, and assigns the timestamp to
the variable ts.
Examples
Acquire One Image Frame from Matrox Frame Grabber
Use the snapshot function to acquire one image frame from a Matrox frame grabber.
You then show it using a display function such as imshow or image.
Use the matroxlist function to ensure that MATLAB is discovering your frame
grabber.
matroxlist
ans =