Simplify a polygon reducing the number of vertex according the distance "delta".
Uses a version of the Ramer-Douglas-Peucker algorithm (http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm).
Namespace: OpenCvSharp.Blob
Assembly: OpenCvSharp.Blob (in OpenCvSharp.Blob.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static CvContourPolygon SimplifyPolygon( CvContourPolygon polygon, double delta )
Parameters
- polygon
- Type: OpenCvSharp.BlobCvContourPolygon
Contour (polygon type). - delta
- Type: SystemDouble
Minimun distance.
Return Value
Type: CvContourPolygonA simplify version of the original polygon.
See Also