8.4.2.39. undistortion
(packages/opencv/undistortion.lsh)


dummy function that adds OpenCV C header files in C file

8.4.2.39.0. (cvInitUndistortMap intrinsicmat distcoeffs mapx mapy)
(packages/opencv/undistortion.lsh)


 OPENCVAPI  void  cvInitUndistortMap( const CvMat* intrinsicMatrix,
                                      const CvMat* distortionCoeffs,
                                      CvArr*       mapX,
                                      CvArr*       mapY);


8.4.2.39.1. (cvUndistort2 srcimage dstimage intrinsicmat distortion)
(packages/opencv/undistortion.lsh)


 OPENCVAPI  void  cvUndistort2( const CvArr* srcImage,
                                CvArr*       dstImage,
                                const CvMat* intrinsicMatrix,
                                const cvMat* distortionCoeffs);


8.4.2.39.2. (cvWarpPerspective src dst mapmatrix flags fillval)
(packages/opencv/undistortion.lsh)


 OPENCVAPI  void  cvWarpPerspective( const CvArr* src,
                                     CvArr* dst,
                                     const CvMat* map_matrix,
                                     int flags=CV_INTER_LINEAR
                                     +CV_WARP_FILL_OUTLIERS,
                                     CvScalar fillval=cvScalarAll(0));


8.4.2.39.3. (cvWarpPerspectiveQMatrix src dst mapmatrix)
(packages/opencv/undistortion.lsh)


 OPENCVAPI  void  cvWarpPerspectiveQMatrix( const CvPoint2D32f* src,
                                            const CvPoint2D32f* dst,
                                            CvMat* map_matrix);


8.4.2.39.4. (cvRemap src dst mapx mapy flags fillval)
(packages/opencv/undistortion.lsh)


 OPENCVAPI  void  cvRemap( const CvArr* src, CvArr* dst,
                           const CvArr* mapx, const CvArr* mapy,
                           int flags=CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS,
                           CvScalar fillval=cvScalarAll(0) );


8.4.2.39.5. (cvUnDistortOnce srcimage dstimage intrmatrix distcoeffs interpolate)
(packages/opencv/undistortion.lsh)


 /*F//////////////////////////////////////////////////////////////////////////////////////
 //    Name: cvUnDistortOnce
 //    Purpose: The function corrects radial and tangential image distortion using known
 //             matrix of the camera intrinsic parameters and distortion coefficients
 //    Context:
 //    Parameters:  srcImage    - source(distorted) image
 //                 dstImage    - output(undistorted) image
 //                 intrMatrix  - matrix of the camera intrinsic parameters
 //                 distCoeffs  - vector of the distortion coefficients(k1, k2, p1 and p2)
 //                 interpolate - interpolation flag (turned on by default)
 //F*/
 OPENCVAPI  void  cvUnDistortOnce( const CvArr* srcImage, CvArr* dstImage,
                                   const float* intrMatrix,
                                   const float* distCoeffs,
                                   int interpolate CV_DEFAULT(1) );


8.4.2.39.6. (cvUnDistortInit srcimage undistmap intrmatrix distcoeffs interpolate)
(packages/opencv/undistortion.lsh)


 /*F//////////////////////////////////////////////////////////////////////////////////////
 //    Name: cvUnDistortInit
 //    Purpose: The function calculates arrays of distorted points indices and
 //             interpolation coefficients for cvUnDistort function using known
 //             matrix of the camera intrinsic parameters and distortion coefficients
 //    Context:
 //    Parameters:  srcImage    - source(distorted) image
 //                 intrMatrix  - matrix of the camera intrinsic parameters
 //                 distCoeffs  - vector of the distortion coefficients(k1, k2, p1 and p2)
 //                 undistMap   - distortion data array (CV_32SC1)
 //                 interpolate - interpolation flag (turned on by default)
 //F*/
 OPENCVAPI  void  cvUnDistortInit( const CvArr* srcImage, CvArr* undistMap,
                                   const float* intrMatrix,
                                   const float* distCoeffs,
                                   int interpolate CV_DEFAULT(1) );


8.4.2.39.7. (cvUnDistort srcimage dstimage undistmap interpolate)
(packages/opencv/undistortion.lsh)


 /*F//////////////////////////////////////////////////////////////////////////////////////
 //    Name: cvUnDistort
 //    Purpose: The function corrects radial and tangential distortion in the frame
 //             using previousely calculated arrays of distorted points indices and
 //             undistortion coefficients. The function can be also used
 //             for arbitrary pre-calculated geometrical transformation.
 //             The function processes as following:
 //                 for (x,y) in dstImage:
 //                    dstImage(x,y) = srcImage[ undistMap(x,y) ].
 //    Context:
 //    Parameters:  srcImage  - source(distorted) image (width x height x 8uC1/8uC3)
 //                 dstImage  - output(undistorted) image (width x height x 8uC1/8uC3)
 //                 undistMap - distortion data array:
 //                                 (width x height x 32sC3) or
 //                                 (width*3 x height x 32sC1) if interpolation is enabled;
 //                                 (width x height x 32sC1) if interpolation is disabled;
 //                             This array can be calculated from camera
 //                             lens distortion parameters using cvUnDistortInit or
 //                             from arbitrary floating-point map using cvConvertMap
 //                 interpolate - interpolation flag (turned on by default)
 //F*/
 OPENCVAPI  void  cvUnDistort( const CvArr* srcImage, CvArr* dstImage,
                               const CvArr* undistMap, int interpolate CV_DEFAULT(1));
 #define cvRemap cvUnDistort