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.

C# | Visual Basic | Visual C++ |
public void InitUndistortMap( int width, int height, out Matrix<float> mapx, out Matrix<float> mapy )
Public Sub InitUndistortMap ( _ width As Integer, _ height As Integer, _ <OutAttribute> ByRef mapx As Matrix(Of Single), _ <OutAttribute> ByRef mapy As Matrix(Of Single) _ )
public: void InitUndistortMap( int width, int height, [OutAttribute] Matrix<float>^% mapx, [OutAttribute] Matrix<float>^% mapy )
Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.3.0.0 (1.3.0.0)