User`s guide

getdata
Purpose AcquiredimageframestoMATLABworkspace
Syntax data = getdata(obj)
data = getdata(obj,n )
data = getdata(obj,n ,type)
data = getdata(obj,n ,type,format)
[data,time] = getdat a(...)
[data, time, metadat a] = getdata(...)
Description data = getdata(obj) returns data, which contains the number of
frames specified in the
FramesPerTrigger property of the video input
object
obj. obj mustbea1-by-1videoinputobject.
data is returned as an H-by-W-by-B-by-F matrix where
H
Image height, as specified in the object’s ROIPo sition
property
W
Image width, a
s specified in the object’s
ROIPosition
property
B
Number of colo
r bands, as specified in the
NumberOfBands
property
F
The num ber of
frames returned
data is returned to the M ATLAB workspace in its native data type
using the color space specified by the
ReturnedColorSpace property.
You can use the MATLAB
image or imagesc functions to view the
returned data. Use
imaqmontage to view mul tiple fra mes a t once.
data = getdata(obj,n ) returns n frames of data associated with the
video input object
obj.
data = getdata(obj,n ,type) returns n frames of data associated with
the video input object
obj,wheretype is one of the text strings in the
following table that specify the data type used to store the returned
data.
12-9