ComfyUI Node
cv2.phase
Raw wrapper of cv2.phase(x, y, angleInDegrees?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.phase
- x
- y
- nparray
◄angleInDegreesfalse►
Categoryimage/CV/low-level/cv2 P
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| x | NPARRAY,IMAGE,MASK | input floating-point array of x-coordinates of 2D vectors. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| y | NPARRAY,IMAGE,MASK | input array of y-coordinates of 2D vectors; it must have the same size and the same type as x. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| angleInDegreesopt | BOOLEAN | false | when true, the function calculates the angle in degrees, otherwise, they are measured in radians. Preset to the OpenCV default (False). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |