MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Podręcznik Użytkownika Strona 411

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 410
getdata
17-19
information about the corresponding frame in data. The metadata structure contains
these fields:
Metadata Field Description
'AbsTime' Absolute time the frame was acquired, expressed as a time
vector
'FrameNumber' Number identifying the nth frame since the start command
was issued
'RelativeFrame' Number identifying the nth frame relative to the start of a
trigger
'TriggerIndex' Number of the trigger in which this frame was acquired
In addition to the fields in the above table, some adaptors may choose to add other
adaptor-specific metadata as well.
getdata is a blocking function that returns execution control to the MATLAB workspace
after the requested number of frames becomes available within the time period
specified by the object's Timeout property. The object's FramesAvailable property is
automatically reduced by the number of frames returned by getdata. If the requested
number of frames is greater than the frames to be acquired, getdata returns an error.
It is possible to issue a Ctrl+C while getdata is blocking. This does not stop the
acquisition but does return control to MATLAB.
Examples
Construct a video input object associated with a Matrox device at ID 1.
obj = videoinput('matrox', 1);
Initiate an acquisition and access the logged data.
start(obj);
data = getdata(obj);
Display each image frame acquired.
imaqmontage(data);
Remove the video input object from memory.
Przeglądanie stron 410
1 2 ... 406 407 408 409 410 411 412 413 414 415 416 ... 573 574

Komentarze do niniejszej Instrukcji

Brak uwag