pointPolygonTest function

double pointPolygonTest(
  1. VecPoint points,
  2. Point2f pt,
  3. bool measureDist
)

PointPolygonTest performs a point-in-contour test.

For further details, please see: https:///docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#ga1a539e8db2135af2566103705d7a5722

Implementation

double pointPolygonTest(VecPoint points, Point2f pt, bool measureDist) {
  return cvRunArena<double>((arena) {
    final r = arena<ffi.Double>();
    cvRun(() => cimgproc.PointPolygonTest(points.ref, pt.ref, measureDist, r));
    return r.value;
  });
}