http://www.emgu.com
Pre-computes the undistortion map - coordinates of the corresponding pixel in the distorted image for every pixel in the corrected image. Then, the map (together with input and output images) can be passed to cvRemap function.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public static void cvInitUndistortMap(
	IntPtr intrinsicMatrix,
	IntPtr distortionCoeffs,
	IntPtr mapx,
	IntPtr mapy
)
Visual Basic
Public Shared Sub cvInitUndistortMap ( _
	intrinsicMatrix As IntPtr, _
	distortionCoeffs As IntPtr, _
	mapx As IntPtr, _
	mapy As IntPtr _
)
Visual C++
public:
static void cvInitUndistortMap(
	IntPtr intrinsicMatrix, 
	IntPtr distortionCoeffs, 
	IntPtr mapx, 
	IntPtr mapy
)

Parameters

intrinsicMatrix
Type: System..::..IntPtr
The camera matrix (A) [fx 0 cx; 0 fy cy; 0 0 1]
distortionCoeffs
Type: System..::..IntPtr
The vector of distortion coefficients, 4x1 or 1x4 [k1, k2, p1, p2].
mapx
Type: System..::..IntPtr
The output array of x-coordinates of the map
mapy
Type: System..::..IntPtr
The output array of y-coordinates of the map

See Also