ComfyUI Node
cv2.convertPointsToHomogeneous
Raw wrapper of cv2.convertPointsToHomogeneous(src, dtype?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.convertPointsToHomogeneous
- 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 from Euclidean to homogeneous space by appending 1's to the tuple of point coordinates. That is, each point (x1, x2, ..., xn) is converted to (x1, x2, ..., xn, 1). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |