Chapter5 MachineVision
IMAQVision for LabWindows/CVI User Manual 5-2 ni.com
Figure 5-1 illustrates the basic steps involved in performing machine
vision. Diagram items enclosed with dashed lines are optional steps.
Figure5-1. Stepsto Performing Machine Vision
Locate Objects to InspectIn a typicalmachine vision application, you extract measurements from
regions of interest rather than the entire image. To use this technique, the
partso f the object you are interested in must always appear inside the
regions of interest you define.
Ifthe object under inspection is always at the same location and orientation
in the images you need to process, defining regionsof interest is simpl e.
See the Set Search Areas section for information about selecting a region
of interest.
Often,t he object under inspection appears rotated or shifted in the image
you need to processwith respect to the reference image in which you
locatedthe object. When this o ccurs, the regionsof interest(ROIs)need to
shift and rotate with the parts of the object in which you are interested. In
orderfor the ROIs to move with the object, you need to define a reference
coordinatesystem relative to the object in the reference image. During the
measurementprocess, the coordinate system moves with the object when it
LocateObjects to Inspect
SetSearch Areas
FindMeasurement Points
ConvertPixel Coordinates to
Real-WorldCoordinates
MakeMeasurements
DisplayResults