initWideAngleProjMap function
(double, Mat, Mat)
initWideAngleProjMap(
- 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
(double rval, Mat map1, Mat map2) initWideAngleProjMap(
InputArray cameraMatrix,
InputArray distCoeffs,
Size imageSize,
int destImageWidth,
int m1type, {
OutputArray? map1,
OutputArray? map2,
int projType = PROJ_SPHERICAL_EQRECT,
double alpha = 0,
}) {
map1 ??= Mat.empty();
map2 ??= Mat.empty();
final prval = calloc<ffi.Float>();
cvRun(
() => ccalib3d.cv_initWideAngleProjMap(
cameraMatrix.ref,
distCoeffs.ref,
imageSize.ref,
destImageWidth,
m1type,
map1!.ref,
map2!.ref,
projType,
alpha,
prval,
ffi.nullptr,
),
);
final rval = prval.value;
calloc.free(prval);
return (rval, map1, map2);
}