contourArea function

double contourArea(
  1. VecPoint contour
)

ContourArea calculates a contour area.

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

Implementation

double contourArea(VecPoint contour) {
  return cvRunArena<double>((arena) {
    final area = arena<ffi.Double>();
    cvRun(() => cffi.ContourArea(contour.ref, area));
    return area.value;
  });
}