| Cv2ApproxPolyDP Method (InputArray, OutputArray, Double, Boolean) |
Approximates contour or a curve using Douglas-Peucker algorithm
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void ApproxPolyDP(
InputArray curve,
OutputArray approxCurve,
double epsilon,
bool closed
)
Public Shared Sub ApproxPolyDP (
curve As InputArray,
approxCurve As OutputArray,
epsilon As Double,
closed As Boolean
)
public:
static void ApproxPolyDP(
InputArray^ curve,
OutputArray^ approxCurve,
double epsilon,
bool closed
)
static member ApproxPolyDP :
curve : InputArray *
approxCurve : OutputArray *
epsilon : float *
closed : bool -> unit
Parameters
- curve
- Type: OpenCvSharpInputArray
The polygon or curve to approximate.
Must be 1 x N or N x 1 matrix of type CV_32SC2 or CV_32FC2. - approxCurve
- Type: OpenCvSharpOutputArray
The result of the approximation;
The type should match the type of the input curve - epsilon
- Type: SystemDouble
Specifies the approximation accuracy.
This is the maximum distance between the original curve and its approximation. - closed
- Type: SystemBoolean
The result of the approximation;
The type should match the type of the input curve
See Also