ComfyUI Node
cv2.stereoRectifyUncalibrated
Raw wrapper of cv2.stereoRectifyUncalibrated(points1, points2, F, imgSize, threshold?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.stereoRectifyUncalibrated
- points1
- points2
- F
- imgSize
- retval
- H1
- H2
◄threshold5.0000►
Categoryimage/CV/low-level/cv2 S
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| points1 | NPARRAY | Array of feature points in the first image. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| points2 | NPARRAY | The corresponding points in the second image. The same formats as in #findFundamentalMat are supported. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| F | NPARRAY | Input fundamental matrix. It can be computed from the same set of point pairs using #findFundamentalMat . A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| imgSize | CV_TUPLE | 0,0 | Size of the image. 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. |
| thresholdopt | FLOAT | 5.0000-1e+38–1e+38 | Optional threshold used to filter out the outliers. If the parameter is greater than zero, all the point pairs that do not comply with the epipolar geometry (that is, the points for which $|\texttt{points2[i]}^T \cdot \texttt{F} \cdot \texttt{points1[i]}|>\texttt{threshold}$ ) are rejected prior to computing the homographies. Otherwise, all the points are considered inliers. The function computes the rectification transformations without knowing intrinsic parameters of the cameras and their relative position in the space, which explains the suffix "uncalibrated". Another related difference from #stereoRectify is that the function outputs not the rectification transformations in the object (3D) space, but the planar perspective transformations encoded by the homography matrices H1 and H2 . The function implements the algorithm . Preset to the OpenCV default (5.0). |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| retval | BOOLEAN | — |
| H1 | NPARRAY | — |
| H2 | NPARRAY | — |