MATLAB IMAGE ACQUISITION TOOLBOX 3 Guide de l'utilisateur Page 168

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 408
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 167
6 Working with Acquired Image Data
triggerconfig(vid,'manual')
In addition, configure a large enough acquisition to allow several ca
lls to
peekdata before it finishes.
set(vid,'FramesPerTrigger',300);
3 Start the image acquisition object —Callthestart function to start
the image acquisition object.
start(vid)
The video object is now running but not logging.
isrunning(vid)
ans =
1
islogging(vid)
ans =
0
4 Use peekdata to view frames before a trigger —Ifyoucallpeekdata
before you trigger the acquisition, peekdata can only return a single frame
of data because data logging has not been initiated and the memory buffer
is empty. If more than one frame is requested,
peekdata issues a warning
that it is returning fewer than the requested number of frames.
pdata = peekdata(vid, 50);
Warning: PEEKDATA coul d no t return all the frames reques ted.
Verify that peekdata returned a single frame. A single frame of data
should have the same width and height as specified by the
ROIPosition
property and the same number of bands, as specified by the NumberOf Bands
property. In this example, the video format o f the data is RGB so the value
of the
NumberOfBands property is 3.
whos
6-8
Vue de la page 167
1 2 ... 163 164 165 166 167 168 169 170 171 172 173 ... 407 408

Commentaires sur ces manuels

Pas de commentaire