CvInvokeInitUndistortRectifyMap Method |
http://www.emgu.com
This function is an extended version of cvInitUndistortMap. That is, in addition to the correction of lens distortion, the function can also apply arbitrary perspective transformation R and finally it can scale and shift the image according to the new camera matrix
Namespace: Emgu.CVAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static void InitUndistortRectifyMap(
IInputArray cameraMatrix,
IInputArray distCoeffs,
IInputArray R,
IInputArray newCameraMatrix,
Size size,
DepthType depthType,
IOutputArray map1,
IOutputArray map2 = null
)
Public Shared Sub InitUndistortRectifyMap (
cameraMatrix As IInputArray,
distCoeffs As IInputArray,
R As IInputArray,
newCameraMatrix As IInputArray,
size As Size,
depthType As DepthType,
map1 As IOutputArray,
Optional map2 As IOutputArray = Nothing
)
public:
static void InitUndistortRectifyMap(
IInputArray^ cameraMatrix,
IInputArray^ distCoeffs,
IInputArray^ R,
IInputArray^ newCameraMatrix,
Size size,
DepthType depthType,
IOutputArray^ map1,
IOutputArray^ map2 = nullptr
)
static member InitUndistortRectifyMap :
cameraMatrix : IInputArray *
distCoeffs : IInputArray *
R : IInputArray *
newCameraMatrix : IInputArray *
size : Size *
depthType : DepthType *
map1 : IOutputArray *
?map2 : IOutputArray
(* Defaults:
let _map2 = defaultArg map2 null
*)
-> unit
Parameters
- cameraMatrix
- Type: Emgu.CVIInputArray
The camera matrix A=[fx 0 cx; 0 fy cy; 0 0 1] - distCoeffs
- Type: Emgu.CVIInputArray
The vector of distortion coefficients, 4x1, 1x4, 5x1 or 1x5 - R
- Type: Emgu.CVIInputArray
The rectification transformation in object space (3x3 matrix). R1 or R2, computed by cvStereoRectify can be passed here. If the parameter is IntPtr.Zero, the identity matrix is used - newCameraMatrix
- Type: Emgu.CVIInputArray
The new camera matrix A'=[fx' 0 cx'; 0 fy' cy'; 0 0 1] - size
- Type: System.DrawingSize
Undistorted image size. - depthType
- Type: Emgu.CV.CvEnumDepthType
Depth type of the first output map that can be CV_32FC1 or CV_16SC2 . - map1
- Type: Emgu.CVIOutputArray
The first output map. - map2 (Optional)
- Type: Emgu.CVIOutputArray
The second output map.
See Also