Click or drag to resize
CvInvokePointPolygonTest Method
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.World (in Emgu.CV.World.dll) Version: 3.1.0.2282 (3.1.0.2282)
Syntax
public static double PointPolygonTest(
	IInputArray contour,
	PointF pt,
	bool measureDist
)

Parameters

contour
Type: Emgu.CVIInputArray
Input contour
pt
Type: System.DrawingPointF
The point tested against the contour
measureDist
Type: SystemBoolean
If != 0, the function estimates distance from the point to the nearest contour edge

Return Value

Type: Double
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