undistortPointsAsync function
Future<Mat>
undistortPointsAsync(
- InputArray src,
- InputArray cameraMatrix,
- InputArray distCoeffs, {
- OutputArray? dst,
- InputArray? R,
- InputArray? P,
- (int, int, double) criteria = (TERM_COUNT + TERM_EPS, 30, 1e-4),
Implementation
Future<Mat> undistortPointsAsync(
InputArray src,
InputArray cameraMatrix,
InputArray distCoeffs, {
OutputArray? dst,
InputArray? R,
InputArray? P,
(int type, int count, double eps) criteria = (TERM_COUNT + TERM_EPS, 30, 1e-4),
}) async {
R ??= Mat.empty();
P ??= Mat.empty();
dst ??= Mat.empty();
final tc = criteria.cvd;
return cvRunAsync0(
(callback) => ccalib3d.cv_undistortPoints(
src.ref,
dst!.ref,
cameraMatrix.ref,
distCoeffs.ref,
R!.ref,
P!.ref,
tc.ref,
callback,
),
(c) => c.complete(dst!),
);
}