NI Vision for LabVIEW

IMAQ Find Concentric Edge 2 VI

  • Updated2023-02-21
  • 12 minute(s) read
Owning Palette: Locate Edges
Requires: NI Vision Development Module

Finds a straight edge in an annular search region of an image. This VI locates the intersection points between a set of annular search lines and the edge of an object.

Supported Image Types

8-bit unsigned grayscale 16-bit unsigned grayscale 32-bit RGB 16-bit signed grayscale 64-bit RGB floating point grayscale 32-bit HSL

IMAQ Find Concentric Edge 2

ccclst.gif

Options is a cluster defining the parameters of the edge detection algorithm and the information that is overlaid on the result image.

cu16.gif

Scan Direction specifies the direction in which the VI searches for edges along the concentric search lines.

cnclst.gif

Edge Options specifies the parameters used to compute edge gradient information and detect edges.

cu32.gif

Edge Polarity specifies the polarity of the edges to be found.

All Edges (0)

(Default) Searches for all edges

Rising Edges (1)

Searches for rising edges

Falling Edges (2)

Searches for falling edges

cu32.gif

Kernel Size specifies the size of the edge detection kernel. The default is 3.

cu32.gif

Width specifies the number of pixels averaged perpendicular to the search direction to compute the edge profile strength at each point along the search ROI. The default is 3.

csgl.gif

Minimum Edge Strength specifies the minimum edge strength (gradient magnitude) required for a detected edge. The default is 10.

cenum.gif

Interpolation Type specifies the interpolation method used to locate the edge position.

Choose from the following options:

Zero Order (0)

Rounds to the nearest integral edge location

Bilinear (1)

Uses bilinear interpolation to compute the edge location

Bilinear Fixed (4)

(Default) Uses the fixed-point computation of bilinear interpolation to determine the edge location

cenum.gif

Data Processing Method is the method used to process the data extracted for edge detection.

Average (0)

(Default) Averages the data extracted for edge detection

Median (1)

Takes the median of the data extracted for edge detection

cbool.gif

Show Search Area determines whether the search area is overlaid on the image.

cbool.gif

Show Search Lines determines whether the search lines used to locate the edges are overlaid on the image.

cbool.gif

Show Edges Found determines whether the locations of the edges found are overlaid on the result image.

cbool.gif

Show Result determines whether the edge found is overlaid on the result image.

cu32.gif

Search Area Color specifies the color to use to overlay the search area.

cu32.gif

Search Lines Color specifies the color to use to overlay the search lines.

cu32.gif

Edge Locations Color specifies the color to use to overlay the edge locations.

cu32.gif

Result Color specifies the color to use to overlay the result.

cstr.gif

Overlay Group Name specifies name to give the overlay group.

cgenclasstagrefflat.gif

Image is a reference to the image in which you want to locate the circular edge.

ccclst.gif

ROI Descriptor defines the Region of Interest (ROI) within which the edge detection is performed.

c1di32.gif

Global Rectangle contains the coordinates of the bounding rectangle for the circular edge in the image.

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.

ccclst.gif

Coordinate System specifies the coordinate system to use.

ccclst.gif

Reference System is a cluster containing the following elements.

cnclst.gif

Origin is a point cluster that specifies the origin of the base-reference coordinate system.

csgl.gif

X is the x-coordinate of the center of the circle.

csgl.gif

Y is the y-coordinate of the center of the circle.

csgl.gif

Angle (deg) is the angle the base-reference coordinate system makes with the image coordinate system.

cu32.gif

Axis Reference is defined as Direct or Indirect. Refer to Axis Type for more information.

ccclst.gif

Measurement System is a cluster containing the following elements.

cnclst.gif

Origin is a point cluster that specifies the origin of the base-reference coordinate system.

csgl.gif

X is the x-coordinate of the center of the circle.

csgl.gif

Y is the y-coordinate of the center of the circle.

csgl.gif

Angle (deg) is the angle the base-reference coordinate system makes with the image coordinate system.

cu32.gif

Axis Reference is defined as Direct or Indirect. Refer to Axis Type for more information.

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.

cnclst.gif

Edge Fit Options specifies the options that are used to fit the edge.

cenum.gif

Process determines the type of search. Choose from the following values:

Get First Edge (0)

Returns the first edge.

Get First + Last Edge (1)

Returns the first and last edge.

Get All Edges (2)

(Default) Returns all edges found along the search path(s).

cu32.gif

Step Size is the distance between concentric search rings.

ci32.gif

Max Pixel Radius specifies the length of the radius within which a point is assumed to be part of the fitted circle.

ibool.gif

Line Found is a Boolean that indicates whether an edge is found.

igenclasstagrefflat.gif

Image Out is a reference to the input image.

icclst.gif

Fitted Line is a cluster that contains the position and characteristics of the fitted line.

icclst.gif

Line Segment (Pixels) represents the intersection of the line equation and the bounding rectangle of the input points in pixels.

inclst.gif

Point 1 contains coordinates for an intersection point.

isgl.gif

X is the x-coordinate of the center of the circle.

isgl.gif

Y is the y-coordinate of the center of the circle.

inclst.gif

Point 2 contains coordinates for an intersection point.

isgl.gif

X is the x-coordinate of the center of the circle.

isgl.gif

Y is the y-coordinate of the center of the circle.

icclst.gif

Line Segment (Real World) represents the intersection of the line equation and the bounding rectangle of the input points in calibrated units.

inclst.gif

Point 1 contains coordinates for an intersection point.

isgl.gif

X is the x-coordinate of the center of the circle.

isgl.gif

Y is the y-coordinate of the center of the circle.

inclst.gif

Point 2 contains coordinates for an intersection point.

isgl.gif

X is the x-coordinate of the center of the circle.

isgl.gif

Y is the y-coordinate of the center of the circle.

idbl.gif

Angle (Pixel) is the rotation angle of the detected straight edge, in degrees, measured counter-clockwise from the x-axis extending to the right.

idbl.gif

Angle (Real World) is the rotation angle of the detected straight edge, in degrees, measured along the search direction from the start axis.

idbl.gif

Straightness returns the straightness of the detected edge. The straightness of the detected straight edge is defined as the root mean squared error of the fitted line that represents the detected straight edge.

idbl.gif

Average Strength is the average strength (gradient magnitude) of the detected edge.

idbl.gif

Average SNR (dB) is the average signal-to-noise ratio along the detected edge.

icclst.gif

Coordinate System (duplicate) is a reference to the coordinate system.

icclst.gif

Reference System is a cluster containing the following elements.

inclst.gif

Origin is a point cluster that specifies the origin of the base-reference coordinate system.

isgl.gif

X is the x-coordinate of the center of the circle.

isgl.gif

Y is the y-coordinate of the center of the circle.

isgl.gif

Angle (deg) is the angle the base-reference coordinate system makes with the image coordinate system.

iu32.gif

Axis Reference is defined as Direct or Indirect. Refer to Axis Type for more information.

icclst.gif

Measurement System is a cluster containing the following elements.

inclst.gif

Origin is a point cluster that specifies the origin of the base-reference coordinate system.

isgl.gif

X is the x-coordinate of the center of the circle.

isgl.gif

Y is the y-coordinate of the center of the circle.

isgl.gif

Angle (deg) is the angle the base-reference coordinate system makes with the image coordinate system.

iu32.gif

Axis Reference is defined as Direct or Indirect. Refer to Axis Type for more information.

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.