MATLAB IMAGE ACQUISITION TOOLBOX 3 Guida Utente Pagina 112

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 111
4 Connecting to Hardware
Deleting Image Acquisition Objects
When you finis h usi ng you r image acquisition obj ects, use the delete function
to remove them from memory. After deleting the m , clear the variables that
reference the objects from the MATLAB workspace by using the
clear
function.
Note When you delete a video input object, all the v ideo source objects
associated with the video input object are also deleted.
To illustra te, this example creates seve ral video input objects and then deletes
them.
1 Create several image acquisition objects This example creates
several video input objects for a single webcam image acquisition device,
specifying several different video formats. To run this example on y our
system, use the
imaqhwinfo function to get the object constructor for your
image acquisition device and substitute that syntax for the following code.
vid = videoinput('win video',1);
vid2 = videoinput('win video',1,'RGB24_176 x144');
vid3 = videoinput('win video',1,'YV12_352x 288');
2 Clean up Always rem ove image acquisition objects from mem ory, and
the variables that re ference them, when you n o longer need them.
You can delete imag e acquisitio n objects one at a time, using t he delete
function.
delete(vid)
4-28
Vedere la pagina 111
1 2 ... 107 108 109 110 111 112 113 114 115 116 117 ... 407 408

Commenti su questo manuale

Nessun commento