OpenCvSharp.Cv2.InitWideAngleProjMap C# (CSharp) Method

InitWideAngleProjMap() public static method

initializes maps for cv::remap() for wide-angle
public static InitWideAngleProjMap ( InputArray cameraMatrix, InputArray distCoeffs, Size imageSize, int destImageWidth, MatType m1Type, OutputArray map1, OutputArray map2, ProjectionType projType, double alpha ) : float
cameraMatrix InputArray
distCoeffs InputArray
imageSize Size
destImageWidth int
m1Type MatType
map1 OutputArray
map2 OutputArray
projType ProjectionType
alpha double
return float
        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
Cv2