Nodes/comfyui_cv/cv2.initInverseRectificationMap
ComfyUI Node

cv2.initInverseRectificationMap

Raw wrapper of cv2.initInverseRectificationMap(cameraMatrix, distCoeffs, R, newCameraMatrix, size, m1type). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.initInverseRectificationMap
  • cameraMatrix
  • distCoeffs
  • R
  • newCameraMatrix
  • size
  • map1
  • map2
m1typeCV_16SC2 (fixed-point, faster remap)
Categoryimage/CV/low-level/cv2 I

Inputs (6)

NameTypeDefaultDescription
cameraMatrixNPARRAYInput camera matrix $A=\vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}$ . A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
distCoeffsNPARRAYInput vector of distortion coefficients $(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6[, s_1, s_2, s_3, s_4[, \tau_x, \tau_y]]]])$ of 4, 5, 8, 12 or 14 elements. If the vector is NULL/empty, the zero distortion coefficients are assumed. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
RNPARRAYOptional rectification transformation in the object space (3x3 matrix). R1 or R2, computed by #stereoRectify can be passed here. If the matrix is empty, the identity transformation is assumed. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
newCameraMatrixNPARRAYNew camera matrix $A'=\vecthreethree{f_x'}{0}{c_x'}{0}{f_y'}{c_y'}{0}{0}{1}$. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
sizeCV_TUPLE0,0Distorted image size. One value with 2 components (w, h) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place.
m1typeCOMBOCV_16SC2 (fixed-point, faster remap)Type of the first output map. Can be CV_32FC1, CV_32FC2 or CV_16SC2, see #convertMaps

Outputs (2)

NameTypeDescription
map1NPARRAY
map2NPARRAY