beautypg.com

National Instruments IMAQ Vision for Measurement Studio User Manual

Page 50

background image

Chapter 5

Machine Vision

IMAQ Vision for LabWindows/CVI User Manual

5-4

ni.com

Figure 5-2. Coordinate Systems of a Reference Image and Inspection Image

b.

If you use

imaqFindTransformRects()

, specify two

rectangles, 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
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