Cv2PointPolygonTest Method (IEnumerablePoint, Point2f, Boolean) OpenCvSharp Class Library
Checks if the point is inside the contour. Optionally computes the signed distance from the point to the contour boundary

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.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.CPlusPlus.Cv2.PointPolygonTest(System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point},OpenCvSharp.CPlusPlus.Point2f,System.Boolean)"]

pt
Type: OpenCvSharp.CPlusPlusPoint2f

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

measureDist
Type: SystemBoolean

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

Return Value

Type: Double

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

See Also

Reference