ComfyUI Node
cv2.convertPointsFromHomogeneous
Raw wrapper of cv2.convertPointsFromHomogeneous(src, dtype?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.convertPointsFromHomogeneous
- src
- nparray
◄dtypesame as input►
Categoryimage/CV/low-level/cv2 C
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| src | NPARRAY | Input vector of N-dimensional points. A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here. | |
| dtypeopt | COMBO | same as input | The desired output array depth (either CV_32F or CV_64F are currently supported). If it's -1, then it's set automatically to CV_32F or CV_64F, depending on the input depth. The function converts points homogeneous to Euclidean space using perspective projection. That is, each point (x1, x2, ... x(n-1), xn) is converted to (x1/xn, x2/xn, ..., x(n-1)/xn). When xn=0, the output point coordinates will be (0,0,0,...). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |