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.1.0.649 (2.1.0.649)
Syntax
C# | Visual Basic | Visual C++ |
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 )