| Cv2ApproxPolyDP Method (IEnumerablePoint, 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 Point[] ApproxPolyDP(
IEnumerable<Point> curve,
double epsilon,
bool closed
)
Public Shared Function ApproxPolyDP (
curve As IEnumerable(Of Point),
epsilon As Double,
closed As Boolean
) As Point()
public:
static array<Point>^ ApproxPolyDP(
IEnumerable<Point>^ curve,
double epsilon,
bool closed
)
static member ApproxPolyDP :
curve : IEnumerable<Point> *
epsilon : float *
closed : bool -> Point[]
Parameters
- curve
- Type: System.Collections.GenericIEnumerablePoint
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
The result of the approximation;
The type should match the type of the input curve
Return Value
Type:
PointThe result of the approximation;
The type should match the type of the input curve
See Also