| CvBlobLibSimplifyPolygon Method (CvContourPolygon, Double) |
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
Syntax public static CvContourPolygon SimplifyPolygon(
CvContourPolygon polygon,
double delta
)
Public Shared Function SimplifyPolygon (
polygon As CvContourPolygon,
delta As Double
) As CvContourPolygon
public:
static CvContourPolygon^ SimplifyPolygon(
CvContourPolygon^ polygon,
double delta
)
static member SimplifyPolygon :
polygon : CvContourPolygon *
delta : float -> CvContourPolygon
Parameters
- polygon
- Type: OpenCvSharp.BlobCvContourPolygon
Contour (polygon type). - delta
- Type: SystemDouble
Minimum distance.
Return Value
Type:
CvContourPolygonA simplify version of the original polygon.
See Also