MATLAB IMAGE ACQUISITION TOOLBOX 3 Guía de usuario Pagina 150

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 408
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 149
5 Acqu iring Image Data
out = imaqmem;
mem_left = out.FrameMe moryLimit - out.FrameMe moryUsed;
To see a n example of using a callback function to monitor memory usage, see
“Example: Monitoring Memory Usage” on p ag e 7-17.
Modifying the Frame Memory Limit
To enab le yo u r ima ge acquisition applicat ion to wo r k with mo re ima ge frames,
you might want to increase the frame memory limit. Using the
imaqmem
function you can determine the current frame memory limit and specify a new
one. The following example illustrates this process.
1 Determine the c u rr e nt frame memory lim it This exam ple calls the
imaqmem function, requesting the value of the FrameMemoryLimit field.
out = imaqmem('FrameM emoryLimit')
out =
15425536
2 Set the frame memory limit to a new value —Whenyoucallimaqmem
with a numeric argument, it sets the FrameMemoryLim it field to th e value.
imaqmem(36000000)
3 Verify the frame memory limit setting —Callimaqmem again,
requesting the value of the
FrameMemoryLimit field.
out = imaqmem('FrameM emoryLimit')
out =
36000000
5-36
Vista de pagina 149
1 2 ... 145 146 147 148 149 150 151 152 153 154 155 ... 407 408

Comentarios a estos manuales

Sin comentarios