Chapter 4
Programming with NI-IMAQ for 1394 VIs
NI-IMAQ for IEEE-1394 Cameras User Manual
4-4
ni.com
Buffer Management
IMAQ Create
and
IMAQ Dispose
manage image buffers in LabVIEW.
IMAQ Create
, shown in Figure 4-2, allocates an image buffer.
Image
Name
is a label for the buffer created. Each buffer must have a unique
name.
Image Type
specifies the type of image being created. Use
8 bits
for
8-bit monochrome images and
16 bits
for 16-bit monochrome images,
RGB
for RGB color images.
Note
If
Image Type
is set 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
acquisition VI, the image acquisition VI allocates the correct amount of
memory for the acquisition. If you are going to process the image, you
might need to wire to
Border Size
.
Border Size
is the width in pixels
created around an image. Some image processing functions, such as
labeling or morphology, require a border.
Figure 4-2.
IMAQ Create
IMAQ Dispose
, shown in Figure 4-3, frees the memory allocated for the
image buffer. Call this VI only after the image is no longer required for
processing.
Figure 4-3.
IMAQ Dispose