FindEdges3 Method

NI Vision for Visual Basic

FindEdges3 Method

Syntax

CWIMAQVision.FindEdges3 SourceImage, Regions, EdgeReport [, Process = cwimaqEdgeProcessAll] [, EdgeOptions]

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Finds edges along a path in an image.

Remarks

Use this method with U8, I16, and SGL images.

Parameters

SourceImage As CWIMAQImage

The input image.

Regions As CWIMAQRegions

Object that specifies the region of the image on which the method is performed.

EdgeReport As CWIMAQEdgeReport2

On return, fills the CWIMAQEdgeReport2 object with information about the detected edges

Process As Variant

[Optional] A CWIMAQEdgeProcesses enumeration which determines the type of search. The method can return the first edge, both the first and the last edge, or all edges found along the search path.

This parameter has a default value of cwimaqEdgeProcessAll.

EdgeOptions As Variant

[Optional] a CWIMAQEdgeOptions2 object that defines the characteristics that the method uses to find the edges and the parameters it needs for subpixel analysis of the edges.