undistortAsync function
Future<Mat>
undistortAsync(
- InputArray src,
- InputArray cameraMatrix,
- InputArray distCoeffs, {
- OutputArray? dst,
- InputArray? newCameraMatrix,
Implementation
Future<Mat> undistortAsync(
InputArray src,
InputArray cameraMatrix,
InputArray distCoeffs, {
OutputArray? dst,
InputArray? newCameraMatrix,
}) async {
dst ??= Mat.empty();
newCameraMatrix ??= Mat.empty();
return cvRunAsync0(
(callback) => ccalib3d.cv_undistort(
src.ref,
dst!.ref,
cameraMatrix.ref,
distCoeffs.ref,
newCameraMatrix!.ref,
callback,
),
(c) => c.complete(dst!),
);
}