Chapter2 GettingMeasurement-Ready Images
IMAQVision for LabWindows/CVI User Manual 2-2 ni.com
3. Selectan imageacquisition device that meets your needs. National
Instruments offersseveral image acquisition (IMAQ) devices, such as
analog color and monochrome IMAQdevices as well as digital
devices.Visit ni.com/imaq for more information about IMAQ
devices.
4. Configurethe driver software for your image acquisition device. If
you havea National Instruments image acquisition device, configure
your NI-IMAQdriver software through Measurement & Automation
Explorer(MAX). Open MAX by double-clicking the Measurement &
Automation Explorer icon on your desktop. For more information,
seet he NI-IMAQ User Manual and the MAX online help.
Calibrate Your Imaging SystemAfter you set up your imaging system, you may want to calibrate your
system.Calibrate your imag ingsystem to assi gn real-world coordinates to
pixelc oordinatesand compensate for p erspective and nonlinear errors
inherent in your imaging system.
Perspectiveerrors occur when your camera axis is not perpendicular to the
object under inspection. Nonlinear distortion may occur from aberrations
inthe camera lens. Perspective errors and lens aberrations cause images to
appeardistorted. This distortion misplaces information in an image, butit
does not necessarilydestroy the information in the image.
Usesimple calibration if you only want to assign real-world coo rdinates to
pixelcoordinates. Use persp ectiveand nonlinear distortion calibrati on if
youneed to compensate for perspective errors and nonlinear lens distortion.
Fordetailed information about calibration, see Chapter 6, Calibration.
Create an ImageTo create an image in IMAQ Vision for LabWindows/CVI, call
imaqCreateImage().This function returns an image reference you can
usewhen callin go ther IMAQ Vision functions. The only limitation to the
size and number of images you can acquire and process is the amount of
memoryon your computer. When you creat ea n image, specify the type of
the image. Table 2-1 lists the valid image types.