IntrinsicCameraParametersUndistort Method (PointF, MatrixDouble, MatrixDouble) |
http://www.emgu.com
Similar to cvInitUndistortRectifyMap and is opposite to it at the same time.
The functions are similar in that they both are used to correct lens distortion and to perform the optional perspective (rectification) transformation.
They are opposite because the function cvInitUndistortRectifyMap does actually perform the reverse transformation in order to initialize the maps properly, while this function does the forward transformation.
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic PointF[] Undistort(
PointF[] src,
Matrix<double> R = null,
Matrix<double> P = null
)
Public Function Undistort (
src As PointF(),
Optional R As Matrix(Of Double) = Nothing,
Optional P As Matrix(Of Double) = Nothing
) As PointF()
public:
array<PointF>^ Undistort(
array<PointF>^ src,
Matrix<double>^ R = nullptr,
Matrix<double>^ P = nullptr
)
member Undistort :
src : PointF[] *
?R : Matrix<float> *
?P : Matrix<float>
(* Defaults:
let _R = defaultArg R null
let _P = defaultArg P null
*)
-> PointF[]
Parameters
- src
- Type: System.DrawingPointF
The observed point coordinates - R (Optional)
- Type: Emgu.CVMatrixDouble
Optional rectification transformation in object space (3x3 matrix). R1 or R2, computed by cvStereoRectify can be passed here. If null, the identity matrix is used. - P (Optional)
- Type: Emgu.CVMatrixDouble
Optional new camera matrix (3x3) or the new projection matrix (3x4). P1 or P2, computed by cvStereoRectify can be passed here. If null, the identity matrix is used.
Return Value
Type:
PointF[Missing <returns> documentation for "M:Emgu.CV.IntrinsicCameraParameters.Undistort(System.Drawing.PointF[],Emgu.CV.Matrix{System.Double},Emgu.CV.Matrix{System.Double})"]
See Also