Click or drag to resize

MatApproxPolyDP Method

Approximates contour or a curve using Douglas-Peucker algorithm. The input is the polygon or curve to approximate and it must be 1 x N or N x 1 matrix of type CV_32SC2 or CV_32FC2.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public Mat ApproxPolyDP(
	double epsilon,
	bool closed
)

Parameters

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

Return Value

Type: Mat
The result of the approximation; The type should match the type of the input curve
See Also