DetectRectangles Method
Syntax
CWIMAQVision.DetectRectangles SearchImage, RectangleDescriptor, ShapeDetectionOptions, MatchReport [, Regions]
Return Type
On success, this method returns 0. On failure, this method returns a negative number.
Purpose
Detects rectangles in a search image.
Remarks
Use this method with U8 images.
Parameters
SearchImage As CWIMAQImage
The image in which the rectangles are to be located.
RectangleDescriptor As CWIMAQRectangleDescriptor
A descriptor specifying the rectangles to look for in the search image.
ShapeDetectionOptions As CWIMAQShapeDetectionOptions
The options the method uses for detecting rectangles.
MatchReport As CWIMAQRectangleMatchReport
The report containing the detected rectangles.
Regions As CWIMAQRegions
[Optional] A CWIMAQRegions object that specifies the regions within an image in which to search for rectangles. 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.