User`s guide

getdata
17-17
getdata
Acquired image frames to MATLAB workspace
Syntax
data = getdata(obj)
data = getdata(obj,n)
data = getdata(obj,n,type)
data = getdata(obj,n,type,format)
[data,time] = getdata(...)
[data, time, metadata] = 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 must be a 1-by-1
video input object.
data is returned as an H-by-W-by-B-by-F matrix where
H Image height, as specified in the object's ROIPosition property
W Image width, as specified in the object's ROIPosition property
B Number of color bands, as specified in the NumberOfBands property
F The number of frames returned
data is returned to the MATLAB 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 multiple frames at once.
data = getdata(obj,n) returns n frames of data associated with the video input
object obj.