CvApproxPoly Method (CvSeqCvPoint, Int32, CvMemStorage, ApproxPolyMethod, Double, Boolean) OpenCvSharp Class Library
Approximates polygonal curve(s) with desired precision.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static CvSeq<CvPoint> ApproxPoly(
	CvSeq<CvPoint> srcSeq,
	int headerSize,
	CvMemStorage storage,
	ApproxPolyMethod method,
	double parameter,
	bool parameter2
)

Parameters

srcSeq
Type: OpenCvSharpCvSeqCvPoint
Sequence of array of points.
headerSize
Type: SystemInt32
Header size of approximated curve[s].
storage
Type: OpenCvSharpCvMemStorage
Container for approximated contours. If it is null, the input sequences' storage is used.
method
Type: OpenCvSharpApproxPolyMethod
Approximation method; only ApproxPolyMethod.DP is supported, that corresponds to Douglas-Peucker algorithm.
parameter
Type: SystemDouble
Method-specific parameter; in case of CV_POLY_APPROX_DP it is a desired approximation accuracy.
parameter2
Type: SystemBoolean
If case if src_seq is sequence it means whether the single sequence should be approximated or all sequences on the same level or below src_seq (see cvFindContours for description of hierarchical contour structures). And if src_seq is array (CvMat*) of points, the parameter specifies whether the curve is closed (parameter2==true) or not (parameter2==false).

Return Value

Type: CvSeqCvPoint

[Missing <returns> documentation for "M:OpenCvSharp.Cv.ApproxPoly(OpenCvSharp.CvSeq{OpenCvSharp.CvPoint},System.Int32,OpenCvSharp.CvMemStorage,OpenCvSharp.ApproxPolyMethod,System.Double,System.Boolean)"]

See Also

Reference