Learning The Error Map; Learning The Correction Table; Setting The Scaling Mode - National Instruments IMAQTM User Manual

Vision for visual basic
Table of Contents

Advertisement

Chapter 6
Calibrating Images
A high score does not reflect the accuracy of the system.
Note
IMAQ Vision for Visual Basic User Manual
If the learning process returns a learning score below 600, try the following:
1.
Make sure the grid complies with the guidelines listed in the
Defining a Calibration Template
2.
Check the lighting conditions. If you have too much or too little
lighting, the software may estimate the center of the dots incorrectly.
Also, adjust the threshold range to distinguish the dots from the
background.
3.
Select another learning algorithm. When nonlinear lens distortion is
present, using perspective projection sometimes results in a low
learning score.

Learning the Error Map

An error map helps you gauge the quality of the complete system. The error
map returns an estimated error range to expect when a pixel coordinate
is transformed into a real-world coordinate. The transformation
accuracy may be higher than the value the error range indicates. Set
CWIMAQLearnCalibrationOptions.LearnErrorMap
the error map.

Learning the Correction Table

If the speed of image correction is a critical factor for the application, use
a correction table. The correction table is a lookup table that contains
the real-world location information of all the pixels in the image. The
correction table is stored in memory. The extra memory requirements for
this option are based on the size of the image. Use this option when you
want to simultaneously correct multiple images in the vision application.
Set
CWIMAQLearnCalibrationOptions.LearnCorrectionTable
to learn the correction table.
True

Setting the Scaling Mode

Use the scaling mode option to choose the appearance of the
corrected image. Set
CWIMAQLearnCalibrationOptions.CorrectionScalingMode
cwimaqScaleToFit
information about the scaling mode, refer to Chapter 3, System Setup and
Calibration, in the IMAQ Vision Concepts Manual.
section.
or
cwimaqScaleToPreserveArea
6-8
to
to learn
True
to
to
. For more
ni.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Imaq

Table of Contents