snapshot
Acquire single image frame from GigE Vision camera
Description
img = snapshot(g);
acquires the current frame as a single image from the
GigE Vision® camera g
and assigns it to the variable
img
. If you call snapshot
in a loop, then it
returns a new frame each time. The returned image is based on the Pixel Format of your
camera. snapshot
uses the camera’s default resolution or another
resolution that you specify using the Height
and
Width
properties, if available.
Note
The snapshot
function is for use only with
the gigecam
object. To acquire images using the videoinput
object,
use the getsnapshot
or getdata
functions.
[img, ts] = snapshot(g);
acquires the current frame as a single image
from the GigE Vision camera g
and assigns it to the variable
img
, and assigns the timestamp to the variable
ts
.