Click or drag to resize

Cv2PointPolygonTest Method (IEnumerablePoint, Point2f, Boolean)

Checks if the point is inside the contour. Optionally computes the signed distance from the point to the contour boundary

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static double PointPolygonTest(
	IEnumerable<Point> contour,
	Point2f pt,
	bool measureDist
)

Parameters

contour
Type: System.Collections.GenericIEnumerablePoint
pt
Type: OpenCvSharpPoint2f
measureDist
Type: SystemBoolean

Return Value

Type: Double
See Also