FindStraightEdges Method

NI Vision for Visual Basic

FindStraightEdges Method

Syntax

CWIMAQVision.FindStraightEdges SourceImage, Regions, SearchDirection, StraightEdges [, EdgeOptions] [, StraightEdgeOptions] [, SearchLines]

Return Type

Long

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

Purpose

Searches an ROI for straight edges.

Parameters

SourceImage As CWIMAQImage

The input image.

Regions As CWIMAQRegions

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

SearchDirection As CWIMAQSearchDirections

The direction to search for straight lines.

StraightEdges As CWIMAQStraightEdges

On return, fills the collection of CWIMAStraightEdge objects with information about the detected straight edges.

EdgeOptions As Variant

[Optional] A CWIMAQEdgeOptions2 object that specifies the parameters that are used to compute the edge profile and detect the edges.

StraightEdgeOptions As Variant

[Optional] A CWIMAQStraightEdgeOptions2 object that specifies the parameters that are used to compute the straight edges.

SearchLines As Variant

[Optional] On return, fills the CWIMAQSearchLines collection with information about each used search line.