DetectEllipses Method

NI Vision for Visual Basic

DetectEllipses Method

Syntax

CWIMAQVision.DetectEllipses SearchImage, EllipseDescriptor, ShapeDetectionOptions, MatchReport [, Regions]

Return Type

Long

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

Purpose

Detects ellipses in a search image.

Remarks

Use this method with U8 images.

Parameters

SearchImage As CWIMAQImage

The image in which the ellipses are to be located.

EllipseDescriptor As CWIMAQEllipseDescriptor

A descriptor specifying the ellipses to look for in the search image.

ShapeDetectionOptions As CWIMAQShapeDetectionOptions

The options the method uses for detecting ellipses.

MatchReport As CWIMAQEllipseMatchReport

The report containing the detected ellipses.

Regions As CWIMAQRegions

[Optional] A CWIMAQRegions object that specifies the regions within an image in which to search for ellipses. 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.