Fit Contour (Fit Contour (Ellipse)) (G Dataflow)

Fits a contour with an ellipse.

contour image in

Reference to the image containing a contour.

Acceptable distance, in pixels, that a point determined to belong to the ellipse can be from the perimeter of the ellipse.

reject outliers

Boolean input that controls whether to use every given radial point or only a subset of the points to fit the ellipse.

 True The algorithm determines the best subset of points to use and ignores the outliers (the points outside the subset). False The algorithm uses every given point.

error in

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

contour image out

Reference to the image containing a contour.

ellipse

Best-fit ellipse.

center

Coordinates of the center of the ellipse.

Angle

Orientation of the major axis with respect to the horizontal.

Length of the semi-major axis.

Length of the semi-minor axis.

Start Angle

First angle of the circular strip.

The angle is measured counterclockwise from the x-axis of a coordinate system centered on the center of the ellipse.

End Angle

Second angle of the circular strip.

The angle is measured counterclockwise from the x-axis of a coordinate system centered on the center of the ellipse.

error out

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application