estimateNewCameraMatrixForUndistortRectifyAsync static method
Future<Mat>
estimateNewCameraMatrixForUndistortRectifyAsync(
- InputArray K,
- InputArray D,
- (int, int) imageSize,
- InputArray R, {
- OutputArray? P,
- double balance = 0.0,
- (int, int) newSize = (0, 0),
- double fovScale = 1.0,
async version of estimateNewCameraMatrixForUndistortRectify
Implementation
static Future<Mat> estimateNewCameraMatrixForUndistortRectifyAsync(
InputArray K,
InputArray D,
(int, int) imageSize,
InputArray R, {
OutputArray? P,
double balance = 0.0,
(int, int) newSize = (0, 0),
double fovScale = 1.0,
}) async {
P ??= Mat.empty();
return cvRunAsync0<Mat>(
(callback) => ccalib3d.cv_fisheye_estimateNewCameraMatrixForUndistortRectify(
K.ref,
D.ref,
imageSize.cvd.ref,
R.ref,
P!.ref,
balance,
newSize.cvd.ref,
fovScale,
callback,
),
(c) => c.complete(P),
);
}