IMAQ Extract Curves VI

LabView NI Vision

IMAQ Extract Curves VI

Owning Palette: AnalysisInstalled With: NI Vision Development Module

Finds curves in an image.

IMAQ Extract Curves

ccclst.gif

ROI Descriptor specifies the region of the image in which to extract curves. This region must be a single rectangle or rotated rectangle contour. By default, the VI returns the curves for the entire image.

c1di32.gif

Global Rectangle contains the coordinates of the bounding rectangle.

c1dcclst.gif

Contours are each of the individual shapes that define an ROI.

cenum.gif

ID refers to whether the contour is the external or internal edge of an ROI.

cu32.gif

Type is the shape type of the contour.

c1di32.gif

Coordinates indicates the relative position of the contour.

cgenclasstagrefflat.gif

Image is a reference to the source image.

ccclst.gif

Curve Parameters is a cluster containing information about how curves are extracted from the image.

cu32.gif

Extraction Mode specifies how the VI identifies curves in the image. Choose from the following options:

Normal (0)

(Default) Select Normal if you want the VI to make no assumptions about the uniformity of objects in the image or the image background.

Uniform Regions (1)

Select Uniform Regions if you want the VI to assume that either the objects in the image or the image background consist of uniform pixel values. This allows the VI to more accurately calculate the external curves of the objects.

ci32.gif

Edge Threshold specifies the minimum contrast a seed point must have for it to be begin a curve. Valid values range from 1 to 360. The default value is 75.

cu32.gif

Edge Filter Size specifies the width of the edge filter that the VI uses to identify curves in the image. The following options are available:

Fine (0)

Sets the Edge Filter Size to fine.

Normal (1)

(Default) Sets the Edge Filter Size to normal.

ci32.gif

Min Length specifies the length, in pixels, of the smallest curve that you want the VI to identify. The VI ignores any curves that have a length less than this value. The default value is 25.

ci32.gif

Row Search Step Size specifies the distance, in the y direction, between the image rows that the algorithm inspects for curve seed points. Valid values range from 1 to 255. The default value is 15.

ci32.gif

Col Search Step Size specifies the distance, in the x direction, between the image columns that the algorithm inspects for curve seed points. Valid values range from 1 to 255. The default value is 15.

ci32.gif

Max Endpoint Gap specifies the maximum gap, in pixels, between the endpoints of a curve that the VI identifies as a closed curve. If the gap is larger than this value, the VI identifies the curve as an open curve. The default value is 10.

cbool.gif

Closed specifies whether to identify only closed curves in the image. The default value is FALSE, which specifies that the VI should identify both open and closed curves.

cbool.gif

Subpixel is ignored by the VI.

cerrcodeclst.gif

error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

ci32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

cstr.gif

source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.

igenclasstagrefflat.gif

Image (dup) is a reference to the source image.

i1dcclst.gif

Curves is an array describing the curves found in the image.

i1dnclst.gif

Points specifies the location of every point detected on the curve.

ibool.gif

Closed? is TRUE (Closed) when the distance between the endpoints of the curve are less than or equal to Max Endpoint Gap or FALSE (Open) when the distance between the endpoints of the curve are greater than Max Endpoint Gap.

idbl.gif

Curve Length returns the length of the curve.

idbl.gif

Min Edge Strength returns the lowest edge strength detected on the curve.

idbl.gif

Max Edge Strength returns the highest edge strength detected on the curve.

idbl.gif

Average Edge Strength returns the average of all edge strengths detected on the curve.

ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

istr.gif

source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.