Chapter 5
Performing Machine Vision Tasks
IMAQ Vision for Visual Basic User Manual
5-4
ni.com
Figure 5-2.
Coordinate Systems of a Reference Image and Inspection Image
b.
If you use
CWMachineVision.FindCoordTransformUsingTwoRects
,
specify two rectangular ROIs, each containing one separate,
straight boundary of the object, as shown in Figure 5-3. The
boundaries cannot be parallel. The regions must be large enough
to include the boundaries in all of the images you want to inspect.
1
Search Area for the Coordinate System
2
Object Edges
3
Origin of the Coordinate System
4
Measurement Area
1
4
1
4
a.
b.
2
3
3
2