Transforms image to compensate lens distortion.
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void Undistort2( CvArr src, CvArr dst, CvMat intrinsicMatrix, CvMat distortionCoeffs, CvMat newCameraMatrix )
Parameters
- src
- Type: OpenCvSharpCvArr
The input (distorted) image. - dst
- Type: OpenCvSharpCvArr
The output (corrected) image. - intrinsicMatrix
- Type: OpenCvSharpCvMat
The camera matrix (A) [fx 0 cx; 0 fy cy; 0 0 1]. - distortionCoeffs
- Type: OpenCvSharpCvMat
The vector of distortion coefficients, 4x1 or 1x4 [k1, k2, p1, p2]. - newCameraMatrix
- Type: OpenCvSharpCvMat
[Missing <param name="newCameraMatrix"/> documentation for "M:OpenCvSharp.Cv.Undistort2(OpenCvSharp.CvArr,OpenCvSharp.CvArr,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat)"]
See Also