Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Structural Analysis and Shape Descriptors » cvApproxPolyDP

cvApproxPolyDP


Approximates polygonal curve(s) with the specified precision.

Name Type Range Description
inCurve Path Input curve.
inEpsilon Real 0.0 - Parameter specifying the approximation accuracy. This is the maximum distance between the original curve and its approximation.
inClosed Bool If true, the approximated curve is closed. Otherwise, it is not closed.
outApproxCurve Path Approximation of curve.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input curve must not be empty in cvApproxPolyDP.

Complexity Level

This filter is available on Basic Complexity Level.