distortPointsAsync static method
Future<Mat>
distortPointsAsync(
- InputArray undistorted,
- InputArray K,
- InputArray D, {
- InputOutputArray? Kundistorted,
- OutputArray? distorted,
- double alpha = 0,
async version of distortPoints
Implementation
static Future<Mat> distortPointsAsync(
InputArray undistorted,
InputArray K,
InputArray D, {
InputOutputArray? Kundistorted,
OutputArray? distorted,
double alpha = 0,
}) async {
distorted ??= Mat.empty();
return cvRunAsync0(
(callback) => Kundistorted == null
? ccalib3d.cv_fisheye_distortPoints(
undistorted.ref,
distorted!.ref,
K.ref,
D.ref,
alpha,
callback,
)
: ccalib3d.cv_fisheye_distortPoints_1(
undistorted.ref,
distorted!.ref,
Kundistorted.ref,
K.ref,
D.ref,
alpha,
callback,
),
(c) => c.complete(distorted),
);
}