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.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
| | | | | | | | |
| C# | | | Visual Basic | | | Visual C++ | |
Public Shared Sub cvInitUndistortMap ( _
intrinsicMatrix As IntPtr, _
distortionCoeffs As IntPtr, _
mapx As IntPtr, _
mapy As IntPtr _
)
Parameters
- intrinsicMatrix
- IntPtr
The camera matrix (A) [fx 0 cx; 0 fy cy; 0 0 1]
- distortionCoeffs
- IntPtr
The vector of distortion coefficients, 4x1 or 1x4 [k1, k2, p1, p2].
- mapx
- IntPtr
The output array of x-coordinates of the map
- mapy
- IntPtr
The output array of y-coordinates of the map
See Also