http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
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.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
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 ) |
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).