National Instruments IMAQTM User Manual page 89

Vision for visual basic
Table of Contents

Advertisement

Chapter 6
Calibrating Images
1
y
1 Origin of a Calibration Grid in the Real World
If you specify a list of points instead of a grid for the calibration process,
Note
the software defines a default coordinate system, as follows:
IMAQ Vision for Visual Basic User Manual
x
a.
Figure 6-3. A Calibration Grid and an Image of the Grid
1.
The origin is placed at the point in the list with the lowest x-coordinate
value and then the lowest y-coordinate value.
2.
The angle is set to 0°.
3.
The axis direction is set to indirect using
CWIMAQCoordinateSystem.AxisOrientation=
cwimaqAxisOrientationIndirect
If you define a coordinate system yourself, carefully consider the
requirements of the application:
Express the origin in pixels. Always choose an origin location that lies
within the calibration grid so that you can convert the location to
real-world units.
Specify the angle as the angle between the x-axis of the new coordinate
system (x') and the top row of dots (x), as shown in Figure 6-4. If the
imaging system exhibits nonlinear distortion, you cannot visualize the
angle as you can in Figure 6-4 because the dots do not appear in
straight lines.
2
2 Origin of the Same Calibration Grid in an Image
.
6-4
b.
ni.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Imaq

Table of Contents