Emgu CV Library Documentation
cvPointPolygonTest Method (contour, pt, measureDist)
NamespacesEmgu.CVCvInvokecvPointPolygonTest(IntPtr, MCvPoint2D32f, Int32)

www.emgu.com/wiki
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
Declaration Syntax
C#Visual BasicVisual C++
public static double cvPointPolygonTest(
	IntPtr contour,
	MCvPoint2D32f pt,
	int measureDist
)
Public Shared Function cvPointPolygonTest ( _
	contour As IntPtr, _
	pt As MCvPoint2D32f, _
	measureDist As Integer _
) As Double
public:
static double cvPointPolygonTest(
	IntPtr contour, 
	MCvPoint2D32f pt, 
	int measureDist
)
Parameters
contour (IntPtr)
Input contour
pt (MCvPoint2D32f)
The point tested against the contour
measureDist (Int32)
If != 0, the function estimates distance from the point to the nearest contour edge
Return Value
When measureDist = 0, the return value is >0 (inside), <0 (outside) and =0 (on edge), respectively. When measureDist != 0, it is a signed distance between the point and the nearest contour edge

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.3.0.0 (1.3.0.0)