http://www.emgu.com
Determines whether the point is inside contour, outside, or lies on an edge (or coinsides with a vertex). It returns positive, negative or zero value, correspondingly

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.0.1717 (2.4.0.1717)

Syntax

C#
public static double cvPointPolygonTest(
	IntPtr contour,
	PointF pt,
	bool measureDist
)
Visual Basic
Public Shared Function cvPointPolygonTest ( _
	contour As IntPtr, _
	pt As PointF, _
	measureDist As Boolean _
) As Double
Visual C++
public:
static double cvPointPolygonTest(
	IntPtr contour, 
	PointF pt, 
	bool measureDist
)

Parameters

contour
Type: System..::..IntPtr
Input contour
pt
Type: System.Drawing..::..PointF
The point tested against the contour
measureDist
Type: System..::..Boolean
If true, the function estimates distance from the point to the nearest contour edge

Return Value

When measureDist == false, the return value is >0 (inside), <0 (outside) and =0 (on edge), respectively. When measureDist == true, it is a signed distance between the point and the nearest contour edge

See Also