Emgu CV Library Documentation
cvUndistort2 Method (src, dst, intrinsic_matrix, distortion_coeffs)
NamespacesEmgu.CVCvInvokecvUndistort2(IntPtr, IntPtr, IntPtr, IntPtr)

www.emgu.com/wiki
Transforms the image to compensate radial and tangential lens distortion. The camera matrix and distortion parameters can be determined using cvCalibrateCamera2. For every pixel in the output image the function computes coordinates of the corresponding location in the input image using the formulae in the section beginning. Then, the pixel value is computed using bilinear interpolation. If the resolution of images is different from what was used at the calibration stage, fx, fy, cx and cy need to be adjusted appropriately, while the distortion coefficients remain the same.
Declaration Syntax
C#Visual BasicVisual C++
public static void cvUndistort2(
	IntPtr src,
	IntPtr dst,
	IntPtr intrinsic_matrix,
	IntPtr distortion_coeffs
)
Public Shared Sub cvUndistort2 ( _
	src As IntPtr, _
	dst As IntPtr, _
	intrinsic_matrix As IntPtr, _
	distortion_coeffs As IntPtr _
)
public:
static void cvUndistort2(
	IntPtr src, 
	IntPtr dst, 
	IntPtr intrinsic_matrix, 
	IntPtr distortion_coeffs
)
Parameters
src (IntPtr)
The input (distorted) image
dst (IntPtr)
The output (corrected) image
intrinsic_matrix (IntPtr)
The camera matrix (A) [fx 0 cx; 0 fy cy; 0 0 1].
distortion_coeffs (IntPtr)
The vector of distortion coefficients, 4x1 or 1x4 [k1, k2, p1, p2].

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.3.0.0 (1.3.0.0)