http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
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.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static double cvPointPolygonTest( IntPtr contour, PointF pt, int measureDist ) |
Visual Basic |
---|
Public Shared Function cvPointPolygonTest ( _ contour As IntPtr, _ pt As PointF, _ measureDist As Integer _ ) As Double |
Visual C++ |
---|
public: static double cvPointPolygonTest( IntPtr contour, PointF pt, int measureDist ) |
Parameters
- contour
- Type: System..::..IntPtr
Input contour
- pt
- Type: System.Drawing..::..PointF
The point tested against the contour
- measureDist
- Type: System..::..Int32
If != 0, the function estimates distance from the point to the nearest contour edge