Extracts a single, best contour from an image.
If the input image is calibrated, the contour will be learned with calibration.
Cluster containing information about how curves are extracted from the image.
Input that specifies how the node identifies curves in the image.
Name | Value | Description |
---|---|---|
Normal | 0 |
(Default) Select if you want the node to make no assumptions about the uniformity of objects in the image or the image background. |
Uniform Regions | 1 |
Select if you want the node to assume that either the objects in the image or the image background consist of uniform pixel values. This allows the node to more accurately calculate the external curves of the objects. |
Minimum contrast a seed point must have for it to begin a curve.
Valid values range from 1 to 255.
Default: 75
Width of the edge filter that the node uses to identify curves in the image.
Name | Value | Description |
---|---|---|
Fine | 0 |
Sets to fine edge filter size. |
Normal | 1 |
(Default) Sets to normal edge filter size. |
Contour Tracing | 2 |
Sets to contour tracing edge filter size, which provides the best results for contour extraction but increases the time required to process the image. |
Length, in pixels, of the smallest curve that you want the node to identify.
The node ignores any curves that have a length less than this value.
Default: 25
Distance, in the y direction, between the image rows that the algorithm inspects for curve seed points.
Valid values range from 1 to 255.
Default: 15
Maximum gap, in pixels, between the endpoints of a curve that the node identifies as a closed curve.
If the gap is larger than this value, the node identifies the curve as an open curve.
Default: 10
Reference to the source image.
Reference to the destination image.
If this input is connected, the contour image will be the image extracted from the ROI bounding box.
Descriptor that defines the region within which to search for contours.
Coordinates of the bounding rectangle.
Individual shapes that define an ROI.
Object specifying if contour is the external or internal edge of an ROI.
Shape type of the contour.
Relative position of the contour.
Direction in which the ROI is examined.
Name | Value | Description |
---|---|---|
rect left to right | 0 |
(Default) Searches the ROI from left to right. |
rect right to left | 1 |
Searches the ROI from right to left. |
rect top to bottom | 2 |
Searches the ROI from top to bottom. |
rect bottom to top | 3 |
Searches the ROI from bottom to top. |
annulus inner to outer | 4 |
Searches the ROI from the inner radius to the outer radius. The inner radius is the radius of the inner circle defining one edge of the circular strip. The outer radius is the radius of the outer circle defining the second edge of the circular strip. |
annulus outer to inner | 5 |
Searches the ROI from the outer radius to the inner radius. The inner radius is the radius of the inner circle defining one edge of the circular strip. The outer radius is the radius of the outer circle defining the second edge of the circular strip. |
annulus start angle to end angle | 6 |
Searches the ROI from start angle to end angle. The start angle is the first angle of the circular strip and is measured counterclockwise from the x-axis of a coordinate system centered on the center of the circle or annulus. The end angle is the second angle of the circular strip and is measured counterclockwise from the x-axis of a coordinate system centered on the center of the circle or annulus. |
annulus end angle to start angle | 7 |
Searches the ROI from end angle to start angle. The start angle is the first angle of the circular strip and is measured counterclockwise from the x-axis of a coordinate system centered on the center of the circle or annulus. The end angle is the second angle of the circular strip and is measured counterclockwise from the x-axis of a coordinate system centered on the center of the circle or annulus. |
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
Extracted contour based on the selected property.
Name | Description |
---|---|
closest to search start | (Default) Selects the curve closest to the ROI. |
maximum length | Selects the longest curve. |
strongest mean gradient change | Selects the curve with the highest edge strength averaged from each point on the curve. |
Option that specifies how to connect curves.
Select a maximum of 1 constraint of each type.
Criteria to use to consider two curves part of a contour.
Name | Value | Description |
---|---|---|
distance (pixel) | 0 |
Specifies the distance, in pixels, within which the end points of two curves must lie in order to be considered part of a contour. |
angle difference (degrees) | 1 |
Specifies the range, in degrees, within which the difference between the angle of two curves, measured at the end points, must lie in order for the two curves to be considered part of a contour. This value can range from 0 to 180. |
connectivity distance (pixel) | 2 |
Specifies the distance, in pixels, within which a line extended from the end point of a curve must pass the end point of another curve in order for the two curves to be considered part of a contour. |
gradient difference (degrees) | 3 |
Specifies the range, in degrees, within which the gradient angles of two curves, measured at the end points, must lie in order for the two curves to be considered part of a contour. This value can range from 0 to 180. |
Minimum value of the range for a given match constraint.
Maximum value of the range for a given match constraint.
Reference to the source image.
Reference to the image containing a contour.
All points found on the contour.
X-coordinate of the point.
Y-coordinate of the point.
All points found on the contour in the source image.
X-coordinate of the point.
Y-coordinate of the point.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application