ComfyUI Node
cv2.estimateAffine2D
Raw wrapper of cv2.estimateAffine2D(from_, to, method?, ransacReprojThreshold?, maxIters?, confidence?, refineIters?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.estimateAffine2D
- from_
- to
- out
- inliers
◄methodRANSAC►
◄ransacReprojThreshold3.0000►
◄maxIters2000►
◄confidence0.9900►
◄refineIters10►
Categoryimage/CV/low-level/cv2 E
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| from_ | NPARRAY | - - - A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| to | NPARRAY | Second input 2D point set containing $(x,y)$. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| methodopt | COMBO | RANSAC | Robust method used to compute transformation. The following methods are possible: - - RANSAC-based robust method - - Least-Median robust method RANSAC is the default method. |
| ransacReprojThresholdopt | FLOAT | 3.0000-1e+38–1e+38 | Maximum reprojection error in the RANSAC algorithm to consider a point as an inlier. Applies only to RANSAC. Preset to the OpenCV default (3.0). |
| maxItersopt | INT | 2000-2147483648–2147483647 | The maximum number of robust method iterations. Preset to the OpenCV default (2000). |
| confidenceopt | FLOAT | 0.9900-1e+38–1e+38 | Confidence level, between 0 and 1, for the estimated transformation. Anything between 0.95 and 0.99 is usually good enough. Values too close to 1 can slow down the estimation significantly. Values lower than 0.8-0.9 can result in an incorrectly estimated transformation. Preset to the OpenCV default (0.99). |
| refineItersopt | INT | 10-2147483648–2147483647 | Maximum number of iterations of refining algorithm (Levenberg-Marquardt). Passing 0 will disable refining, so the output matrix will be output of robust method. Preset to the OpenCV default (10). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| out | NPARRAY | — |
| inliers | NPARRAY | — |