MATLAB IMAGE ACQUISITION TOOLBOX 3 Guida Utente Pagina 157

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 156
Logging Image Data to Disk
Note When you log frames to disk, the video input object queues the frames
for writing but the operating system might not perform the write operation
immediately.ClosinganAVIfilecausesthedatatobewrittentothedisk.
Example: Logging Data to Disk
This ex am p l e illustrates how to configure a video input object to log data
to a disk file:
1 Create a MATLAB AVI file object Create the MATLAB AVI file that
you want to use for data logging, using the
avifile function. You specify
thenameoftheAVIfilewhenyoucreateit.
my_log = 'my_datalog. avi';
aviobj = avifile(my_lo g);
aviobj
Adjustable paramet ers:
Fps: 15.0000
Compression: 'Inde o3'
Quality: 75
KeyFramePerSec: 2. 142 9
VideoName: 'my_data log. avi'
Automatically upda ted parameters:
Filename: 'my_dat alog .avi'
TotalFrames: 0
Width: 0
Height: 0
Length: 0
ImageType: 'Unknow n'
CurrentState: 'Ope n'
2 Configure propertie s o f th e AVI file object You can op t ion ally
configure the properties of the AVI file object. The AVI file object supports
properties that control the data com pression used, image quality, an d
other characteristics of the file. Th e example sets the quality property
5-43
Vedere la pagina 156
1 2 ... 152 153 154 155 156 157 158 159 160 161 162 ... 407 408

Commenti su questo manuale

Nessun commento