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: 1.0.0
Syntax
public static double PointPolygonTest(
	IEnumerable<Point> contour,
	Point2f pt,
	bool measureDist
)

Parameters

contour
Type: System.Collections.GenericIEnumerablePoint

[Missing <param name="contour"/> documentation for "M:OpenCvSharp.Cv2.PointPolygonTest(System.Collections.Generic.IEnumerable{OpenCvSharp.Point},OpenCvSharp.Point2f,System.Boolean)"]

pt
Type: OpenCvSharpPoint2f

[Missing <param name="pt"/> documentation for "M:OpenCvSharp.Cv2.PointPolygonTest(System.Collections.Generic.IEnumerable{OpenCvSharp.Point},OpenCvSharp.Point2f,System.Boolean)"]

measureDist
Type: SystemBoolean

[Missing <param name="measureDist"/> documentation for "M:OpenCvSharp.Cv2.PointPolygonTest(System.Collections.Generic.IEnumerable{OpenCvSharp.Point},OpenCvSharp.Point2f,System.Boolean)"]

Return Value

Type: Double

[Missing <returns> documentation for "M:OpenCvSharp.Cv2.PointPolygonTest(System.Collections.Generic.IEnumerable{OpenCvSharp.Point},OpenCvSharp.Point2f,System.Boolean)"]

See Also