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.
cv2.initInverseRectificationMap
- cameraMatrix
- distCoeffs
- R
- newCameraMatrix
- size
- map1
- map2
◄m1typeCV_16SC2 (fixed-point, faster remap)►
Categoryimage/CV/low-level/cv2 I
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| cameraMatrix | NPARRAY | Input 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. | |
| distCoeffs | NPARRAY | Input 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. | |
| R | NPARRAY | Optional 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. | |
| newCameraMatrix | NPARRAY | New 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. | |
| size | CV_TUPLE | 0,0 | Distorted 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. |
| m1type | COMBO | CV_16SC2 (fixed-point, faster remap) | Type of the first output map. Can be CV_32FC1, CV_32FC2 or CV_16SC2, see #convertMaps |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| map1 | NPARRAY | — |
| map2 | NPARRAY | — |