public static float InitWideAngleProjMap(
InputArray cameraMatrix, InputArray distCoeffs,
Size imageSize, int destImageWidth, MatType m1Type,
OutputArray map1, OutputArray map2,
ProjectionType projType, double alpha = 0)
{
if (cameraMatrix == null)
throw new ArgumentNullException(nameof(cameraMatrix));
if (distCoeffs == null)
throw new ArgumentNullException(nameof(distCoeffs));
if (map1 == null)
throw new ArgumentNullException(nameof(map1));
if (map2 == null)
throw new ArgumentNullException(nameof(map2));
cameraMatrix.ThrowIfDisposed();
distCoeffs.ThrowIfDisposed();
map1.ThrowIfNotReady();
map2.ThrowIfNotReady();
float ret = NativeMethods.imgproc_initWideAngleProjMap(cameraMatrix.CvPtr, distCoeffs.CvPtr, imageSize,
destImageWidth, m1Type, map1.CvPtr, map2.CvPtr, (int)projType, alpha);
GC.KeepAlive(cameraMatrix);
GC.KeepAlive(distCoeffs);
map1.Fix();
map2.Fix();
return ret;
}
#endregion