National Instruments IMAQTM User Manual

Page of 121
Chapter 5
Performing Machine Vision Tasks
5-32
ni.com
DrawRectangle
—Overlays a CWIMAQRectangle object on an 
image.
DrawOval
—Overlays a CWIMAQOval object on an image.
DrawArc
—Overlays a CWIMAQArc object on an image.
DrawPicture
—Overlays a picture object onto the image.
DrawText
—Overlays text on an image.
DrawRegions
—Overlays an ROI described by the CWIMAQRegions 
object on an image.
Tip
You can select the color of overlays by using one of these methods. If you do not 
supply a color to an overlay method, the 
CWIMAQOverlay.DefaultColor
 property 
is used.
You can configure the following CWMachineVision methods to overlay 
different types of information about the inspection image:
FindStraightEdge
FindCircularEdge
FindConcentricEdge
MeasureMaximumDistance
MeasureMinimumDistance
FindPattern
CountAndMeasureObjects
FindCoordTransformUsingRect
FindCoordTransformUsingTwoRects
FindCoordTransformUsingPattern
You can overlay the following information with all the above methods 
except 
CWMachineVision.FindPattern
:
The search area input into the method
The search lines used for edge detection
The edges detected along the search lines
The result of the method
Each of the above CWMachineVision methods has a settings object input 
that allows you to select the information you want to overlay. Set the 
boolean property that corresponds to the information you want to overlay