Chapter4 Programmingwith NI-IMAQ for 1394 VIs
NI-IMAQfor IEEE-1394 Cameras User Manual 4-4 ni.com
Buffer Management
IMAQ Create and IMAQ Dispose manage image buffersin LabVIEW.
IMAQ Create, shown in Figure 4-2, allocatesan image buffer. Image
Nameis alabel for thebuffer created.Each buffer musthave a unique
name.Image Type specifies the type of image being created. Use 8bitsfor
8-bitm onochrome images and 16 bits for 16-bit monochrome images,
RGB forRGBcolorimages.
Note If Image Type isset to a value incompatible with the current video mode, it will
automatically change to a compatible value.
New Image contains pointer information to the buffer,which is initially
empty.When you wire New Image to the Image in input of an image
acquisitionVI, the image acquisitionV I allocatesthe correct amount of
memory for the acquisition. If you are going to process the image, you
mightneed to wire to Border Size.Border Sizeis the width in pixels
created around an image. Some image processing functions, such as
labeling or morphology,require a border.
Figure4-2. IMAQ Create
IMAQDispose, shownin Figure 4-3, frees the memory allocated for the
image buffer.Call this VI only after the image is no longer required for
processing.
Figure4-3. IMAQ Dispose