Cv2PointPolygonTest Method (InputArray, 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(
	InputArray contour,
	Point2f pt,
	bool measureDist
)

Parameters

contour
Type: OpenCvSharp.CPlusPlusInputArray

[Missing <param name="contour"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.PointPolygonTest(OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.Point2f,System.Boolean)"]

pt
Type: OpenCvSharp.CPlusPlusPoint2f

[Missing <param name="pt"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.PointPolygonTest(OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.Point2f,System.Boolean)"]

measureDist
Type: SystemBoolean

[Missing <param name="measureDist"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.PointPolygonTest(OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.Point2f,System.Boolean)"]

Return Value

Type: Double

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.PointPolygonTest(OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.Point2f,System.Boolean)"]

See Also

Reference