Figure 6-4. defining a coordinate system, Learning calibration information, Learning calibration information -5 – National Instruments IMAQ Vision for LabWindows TM /CVI User Manual

Page 90

Advertising
background image

Chapter 6

Calibrating Images

© National Instruments Corporation

6-5

IMAQ Vision for LabWindows/CVI User Manual

Figure 6-4. Defining a Coordinate System

Learning Calibration Information

After you define a calibration grid and reference axis, acquire an image of
the grid using the current imaging setup. For information about acquiring
images, refer to the

Acquire or Read an Image

section of Chapter 2,

Getting

Measurement-Ready Images

. The grid does not need to occupy the entire

image. You can choose a region within the image that contains the grid.
After you acquire an image of the grid, learn the calibration information by
inputting the image of the grid into

imaqLearnCalibrationGrid()

.

Note

If you want to specify a list of points instead of a grid, use

imaqLearnCalibrationPoints()

to learn the calibration information. Use the

CalibrationPoints

structure to specify the pixel to real-world mapping.

1

Default Origin in a Calibration Grid Image

2

User-Defined Origin

x

y

1

2

y'

x'

y

x

Advertising