Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvApproxPolyDP

cvApproxPolyDP


Module: OpenCV

Approximates polygonal curve(s) with the specified precision.

Name Type Range Description
Input value
inCurve Path Input curve.
Input value
inEpsilon Real 0.0 - Parameter specifying the approximation accuracy. This is the maximum distance between the original curve and its approximation.
Input value
inClosed Bool If true, the approximated curve is closed. Otherwise, it is not closed.
Output value
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.