MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guide de l'utilisateur Page 472

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 574
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 471
17 Functions — Alphabetical List
17-80
snapshot
Acquire single image frame from Matrox frame grabber
Syntax
img = snapshot(m);
[img, ts] = snapshot(m);
Description
img = snapshot(m); acquires the current frame as a single image from the Matrox
frame grabber m and assigns it to the variable img. If you call snapshot in a loop, then it
returns a new frame each time.
Note: The snapshot function is for use only with the matroxcam object. To acquire
images using the videoinput object, use the getsnapshot or getdata functions.
[img, ts] = snapshot(m); acquires the current frame as a single image from the
Matrox frame grabber m and assigns it to the variable img, and assigns the timestamp to
the variable ts.
Examples
Acquire One Image Frame from Matrox Frame Grabber
Use the snapshot function to acquire one image frame from a Matrox frame grabber.
You then show it using a display function such as imshow or image.
Use the matroxlist function to ensure that MATLAB is discovering your frame
grabber.
matroxlist
ans =
Vue de la page 471
1 2 ... 467 468 469 470 471 472 473 474 475 476 477 ... 573 574

Commentaires sur ces manuels

Pas de commentaire