findContours function
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
(Contours contours, Mat hierarchy) findContours(Mat src, int mode, int method) {
final hierarchy = Mat.empty();
final v = calloc<cvg.VecVecPoint>();
cvRun(() => cffi.FindContours(src.ref, hierarchy.ref, mode, method, v));
return (Contours.fromPointer(v), hierarchy);
}