©
National Instruments Corporation
6-1
IMAQ Vision for LabWindows/CVI User Manual
6
Calibration
This chapter describes how to calibrate your imaging system, save
calibration information, and attach calibration information to an image.
After you set up your imaging system, you may want to calibrate your
system. If your imaging setup is such that the camera axis is perpendicular
or nearly perpendicular to the object under inspection and your lens has no
distortion, use simple calibration. With simple calibration, you do not need
to learn a template. Instead, you define the distance between pixels in the
horizontal and vertical directions using real-world units.
If your camera axis is not perpendicular to the object under inspection or
your lens is distorted, use perspective and nonlinear distortion calibration
to calibrate your system.
Perspective and Nonlinear Distortion Calibration
Perspective errors and lens aberrations cause images to appear distorted.
This distortion misplaces information in an image, but it does not
necessarily destroy the information in the image. Calibrate your imaging
system if you need to compensate for perspective errors or nonlinear lens
distortion.
Follow these general steps to calibrate your imaging system:
1.
Define a calibration template.
2.
Define a reference coordinate system.
3.
Learn the calibration information.
After you calibrate your imaging setup, you can attach the calibration
information to an image. See the
Attach Calibration Information
section of
this chapter for more information. Depending on your needs, you can either
apply the calibration information to convert pixel coordinates to real-world
coordinates without correcting the image, or you can create a
distortion-free image by correcting the image for perspective errors and
lens aberrations. See Chapter 4,
, and Chapter 5,
, for more information about applying calibration information before
making measurements.