National Instruments IMAQTM 用户手册

下载
页码 121
Chapter 6
Calibrating Images
© National Instruments Corporation
6-5
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 
 section of Chapter 2, 
. 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 
CWIMAQVision.LearnCalibrationGrid
.
Note
If you want to specify a list of points instead of a grid, use 
CWIMAQVision.LearnCalibrationPoints
 to learn the calibration information. 
Use the CWIMAQCalibrationPoints object 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