User`s guide

Bringing Image Data into the MATL AB Workspace
Name Size Bytes Class
pdata 96x128x3 36864 uint8 array
vid 1x1 1060 videoinput obje ct
Ve rify that the o bject has not acquired any frames.
get(vid,'FramesAcquired')
ans =
0
5 Trigger the acquisition —Callthetrigger function to trigger an
acquisition.
trigger(vid)
The object begins logging frames to the m emory buffer.
6 View the most recently acquired frames W hile the acquisition is
in progress, call
peekdata several times to view the latest frames in the
memory buffer. Depending on the number of frames you reque st, and the
timing of these requests,
peekdata might return fewer than the number
of frames you specify.
pdata = peekdata(vid, 50);
To verify that pe ekda ta returned the frames you requested, check the
dimensions of
pdata. peekdata returns a four-dimensional array of frames,
where the last dimension indicates the number of frames returned.
whos
Name Size Bytes Class
pdata 4-D 1843200 uint8 array
vid 1x1 1060 videoinput object
size(pdata)
ans =
96 128 3 50
6-9