DetectCircles Method
Syntax
CWIMAQVision.DetectCircles SearchImage, CircleDescriptor, ShapeDetectionOptions, MatchReport [, Regions]
Return Type
On success, this method returns 0. On failure, this method returns a negative number.
Purpose
Detects circles in a search image.
Remarks
Use this method with U8 images.
Parameters
SearchImage As CWIMAQImage
The image in which the circles are to be located.
CircleDescriptor As CWIMAQCircleDescriptor
A descriptor specifying the circles to look for in the search image.
ShapeDetectionOptions As CWIMAQShapeDetectionOptions
The options the method uses for detecting circles.
MatchReport As CWIMAQCircleMatchReport
The report containing the detected circles.
Regions As CWIMAQRegions
[Optional] A CWIMAQRegions object that specifies the regions within an image in which to search for circles. The CWIMAQRegions object must contain exactly one rectangle or one rotated rectangle region. Do not supply this parameter if you want the entire image to be examined.