findContours2f function

(Contours2f, VecVec4i) findContours2f(
  1. Mat src,
  2. int mode,
  3. int method
)

FindContours finds contours in a binary image.

For further details, please see: https://docs.opencv.org/4.x/d3/dc0/group__imgproc__shape.html#gadf1ad6a0b82947fa1fe3c3d497f260e0

Implementation

(Contours2f contours, VecVec4i hierarchy) findContours2f(Mat src, int mode, int method) {
  final hierarchy = VecVec4i();
  final contours = Contours2f();
  cvRun(() => cimgproc.cv_findContours2f(src.ref, contours.ptr, hierarchy.ptr, mode, method, ffi.nullptr));
  return (contours, hierarchy);
}