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.2.1.1150 (2.2.1.1150)
Syntax
C# | Visual Basic | Visual C++ |
Parameters
- srcSeq
- IntPtr
Sequence of array of points
- headerSize
- Int32
Header size of approximated curve[s].
- storage
- IntPtr
Container for approximated contours. If it is NULL, the input sequences' storage is used
- method
- APPROX_POLY_TYPE
Approximation method
- parameter
- Double
Desired approximation accuracy
- parameter2
- 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).