| Cv2ApproxPolyDP Method (IEnumerablePoint2f, Double, Boolean) |
Approximates contour or a curve using Douglas-Peucker algorithm
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static Point2f[] ApproxPolyDP(
IEnumerable<Point2f> curve,
double epsilon,
bool closed
)
Public Shared Function ApproxPolyDP (
curve As IEnumerable(Of Point2f),
epsilon As Double,
closed As Boolean
) As Point2f()
public:
static array<Point2f>^ ApproxPolyDP(
IEnumerable<Point2f>^ curve,
double epsilon,
bool closed
)
static member ApproxPolyDP :
curve : IEnumerable<Point2f> *
epsilon : float *
closed : bool -> Point2f[]
Parameters
- curve
- Type: System.Collections.GenericIEnumerablePoint2f
The polygon or curve to approximate. - epsilon
- Type: SystemDouble
Specifies the approximation accuracy.
This is the maximum distance between the original curve and its approximation. - closed
- Type: SystemBoolean
If true, the approximated curve is closed
(i.e. its first and last vertices are connected), otherwise it’s not
Return Value
Type:
Point2fThe result of the approximation;
The type should match the type of the input curve
See Also