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) {
  final r = calloc<ffi.Double>();
  cvRun(() => cimgproc.cv_pointPolygonTest(points.ref, pt.ref, measureDist, r, ffi.nullptr));
  final rval = r.value;
  calloc.free(r);
  return rval;
}