http://www.emgu.com
Approximates one or more curves and returns the approximation result[s]. In case of multiple curves approximation the resultant tree will have the same structure as the input one (1:1 correspondence).

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static IntPtr cvApproxPoly(
	IntPtr srcSeq,
	int headerSize,
	IntPtr storage,
	APPROX_POLY_TYPE method,
	double parameter,
	int parameter2
)
Visual Basic
Public Shared Function cvApproxPoly ( 
	srcSeq As IntPtr,
	headerSize As Integer,
	storage As IntPtr,
	method As APPROX_POLY_TYPE,
	parameter As Double,
	parameter2 As Integer
) As IntPtr
Visual C++
public:
static IntPtr cvApproxPoly(
	IntPtr srcSeq, 
	int headerSize, 
	IntPtr storage, 
	APPROX_POLY_TYPE method, 
	double parameter, 
	int parameter2
)
F#
static member cvApproxPoly : 
        srcSeq : IntPtr * 
        headerSize : int * 
        storage : IntPtr * 
        method : APPROX_POLY_TYPE * 
        parameter : float * 
        parameter2 : int -> IntPtr 

Parameters

srcSeq
Type: System..::..IntPtr
Sequence of array of points
headerSize
Type: System..::..Int32
Header size of approximated curve[s].
storage
Type: System..::..IntPtr
Container for approximated contours. If it is NULL, the input sequences' storage is used
method
Type: Emgu.CV.CvEnum..::..APPROX_POLY_TYPE
Approximation method
parameter
Type: System..::..Double
Desired approximation accuracy
parameter2
Type: System..::..Int32
In case if srcSeq is sequence it means whether the single sequence should be approximated or all sequences on the same level or below srcSeq (see cvFindContours for description of hierarchical contour structures). And if srcSeq is array (CvMat*) of points, the parameter specifies whether the curve is closed (parameter2!=0) or not (parameter2=0).

Return Value

Type: IntPtr
The approximation result

See Also