Cv2PointPolygonTest Method (IEnumerablePoint, Point2f, Boolean)
|
Checks if the point is inside the contour. Optionally computes the signed distance from the point to the contour boundary
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static double PointPolygonTest(
IEnumerable<Point> contour,
Point2f pt,
bool measureDist
)
Public Shared Function PointPolygonTest (
contour As IEnumerable(Of Point),
pt As Point2f,
measureDist As Boolean
) As Double
public:
static double PointPolygonTest(
IEnumerable<Point>^ contour,
Point2f pt,
bool measureDist
)
static member PointPolygonTest :
contour : IEnumerable<Point> *
pt : Point2f *
measureDist : bool -> float
OpenCvSharp.Cv2.PointPolygonTest = function(contour, pt, measureDist);
Parameters
- contour
- Type: System.Collections.GenericIEnumerablePoint
- pt
- Type: OpenCvSharpPoint2f
- measureDist
- Type: SystemBoolean
Return Value
Type:
Double
See Also