http://www.emgu.com
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.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public static void cvUndistortPoints(
	IntPtr src,
	IntPtr dst,
	IntPtr camera_matrix,
	IntPtr dist_coeffs,
	IntPtr R,
	IntPtr P
)
Visual Basic
Public Shared Sub cvUndistortPoints ( _
	src As IntPtr, _
	dst As IntPtr, _
	camera_matrix As IntPtr, _
	dist_coeffs As IntPtr, _
	R As IntPtr, _
	P As IntPtr _
)
Visual C++
public:
static void cvUndistortPoints(
	IntPtr src, 
	IntPtr dst, 
	IntPtr camera_matrix, 
	IntPtr dist_coeffs, 
	IntPtr R, 
	IntPtr P
)

Parameters

src
Type: System..::..IntPtr
The observed point coordinates
dst
Type: System..::..IntPtr
The ideal point coordinates, after undistortion and reverse perspective transformation.
camera_matrix
Type: System..::..IntPtr
The camera matrix A=[fx 0 cx; 0 fy cy; 0 0 1]
dist_coeffs
Type: System..::..IntPtr
The vector of distortion coefficients, 4x1, 1x4, 5x1 or 1x5.
R
Type: System..::..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
Type: System..::..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.

See Also