Similar to cvInitUndistortRectifyMap and is opposite to it at the same time.
The functions are similar in that they both are used to correct lens distortion and to perform the optional perspective (rectification) transformation.
They are opposite because the function cvInitUndistortRectifyMap does actually perform the reverse transformation in order to initialize the maps properly, while this function does the forward transformation.
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
C# | Visual Basic | Visual C++ |
Parameters
- src
- IntPtr
The observed point coordinates
- dst
- IntPtr
The ideal point coordinates, after undistortion and reverse perspective transformation.
- camera_matrix
- IntPtr
The camera matrix A=[fx 0 cx; 0 fy cy; 0 0 1]
- dist_coeffs
- IntPtr
The vector of distortion coefficients, 4x1, 1x4, 5x1 or 1x5.
- R
- IntPtr
The rectification transformation in object space (3x3 matrix). R1 or R2, computed by cvStereoRectify can be passed here. If the parameter is IntPtr.Zero, the identity matrix is used.
- P
- IntPtr
The new camera matrix (3x3) or the new projection matrix (3x4). P1 or P2, computed by cvStereoRectify can be passed here. If the parameter is IntPtr.Zero, the identity matrix is used.