Method InitUndistortRectifyMap
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
InitUndistortRectifyMap(InputArray, InputArray, InputArray, InputArray, Size, int, OutputArray, OutputArray)
Computes undistortion and rectification maps for image transform by cv::remap(). If D is empty zero distortion is used, if R or P is empty identity matrixes are used.
public static void InitUndistortRectifyMap(InputArray k, InputArray d, InputArray r, InputArray p, Size size, int m1type, OutputArray map1, OutputArray map2)
Parameters
kInputArrayCamera matrix
dInputArrayInput vector of distortion coefficients (k_1, k_2, k_3, k_4).
rInputArrayRectification transformation in the object space: 3x3 1-channel, or vector: 3x1/1x3 1-channel or 1x1 3-channel
pInputArrayNew camera matrix (3x3) or new projection matrix (3x4)
sizeSizeUndistorted image size.
m1typeintType of the first output map that can be CV_32FC1 or CV_16SC2 . See convertMaps() for details.
map1OutputArrayThe first output map.
map2OutputArrayThe second output map.