fitLine2fAsync function
Future<Mat>
fitLine2fAsync(
- VecPoint2f points,
- int distType,
- double param,
- double reps,
- double aeps, {
- OutputArray? line,
FitLine2f fits a line to a 2D or 3D point set. distType: DistanceTypes For further details, please see: https:///docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#gaaf9519f5f52f4d24805d2b64f4049706
Implementation
Future<Mat> fitLine2fAsync(
VecPoint2f points,
int distType,
double param,
double reps,
double aeps, {
OutputArray? line,
}) {
line ??= Mat.empty();
return cvRunAsync0(
(callback) => cimgproc.cv_fitLine2f(points.ref, line!.ref, distType, param, reps, aeps, callback),
(c) {
return c.complete(line);
},
);
}