initWideAngleProjMapAsync function
Future<(double, Mat, Mat)>
initWideAngleProjMapAsync(
- InputArray cameraMatrix,
- InputArray distCoeffs,
- Size imageSize,
- int destImageWidth,
- int m1type, {
- OutputArray? map1,
- OutputArray? map2,
- int projType = PROJ_SPHERICAL_EQRECT,
- double alpha = 0,
initializes maps for remap for wide-angle
https://docs.opencv.org/4.11.0/d9/d0c/group__calib3d.html#ga9185f4fbe1ad74af2c56a392393cf9f4
Implementation
Future<(double rval, Mat map1, Mat map2)> initWideAngleProjMapAsync(
InputArray cameraMatrix,
InputArray distCoeffs,
Size imageSize,
int destImageWidth,
int m1type, {
OutputArray? map1,
OutputArray? map2,
int projType = PROJ_SPHERICAL_EQRECT,
double alpha = 0,
}) async {
map1 ??= Mat.empty();
map2 ??= Mat.empty();
final prval = calloc<ffi.Float>();
return cvRunAsync0(
(callback) => ccalib3d.cv_initWideAngleProjMap(
cameraMatrix.ref,
distCoeffs.ref,
imageSize.ref,
destImageWidth,
m1type,
map1!.ref,
map2!.ref,
projType,
alpha,
prval,
callback,
), (c) {
final rval = prval.value;
calloc.free(prval);
return c.complete((rval, map1!, map2!));
});
}