undistortImageAsync static method
Future<Mat>
undistortImageAsync(
- InputArray distorted,
- InputArray K,
- InputArray D, {
- OutputArray? undistorted,
- InputArray? knew,
- (int, int) newSize = (0, 0),
async version of undistortImage
Implementation
static Future<Mat> undistortImageAsync(
InputArray distorted,
InputArray K,
InputArray D, {
OutputArray? undistorted,
InputArray? knew,
(int, int) newSize = (0, 0),
}) async {
knew ??= Mat.empty();
undistorted ??= Mat.empty();
return cvRunAsync0<Mat>(
(callback) => ccalib3d.cv_fisheye_undistortImage_1(
distorted.ref,
undistorted!.ref,
K.ref,
D.ref,
knew!.ref,
newSize.cvd.ref,
callback,
),
(c) => c.complete(undistorted),
);
}