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