ComfyUI Node
cv2.cartToPolar
Raw wrapper of cv2.cartToPolar(x, y, angleInDegrees?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.cartToPolar
- x
- y
- magnitude
- angle
◄angleInDegreesfalse►
Categoryimage/CV/low-level/cv2 C
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| x | NPARRAY,IMAGE,MASK | array of x-coordinates; this must be a single-precision or double-precision floating-point array. 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 | array of y-coordinates, that must have the same size and 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 | a flag, indicating whether the angles are measured in radians (which is by default), or in degrees. Preset to the OpenCV default (False). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| magnitude | NPARRAY | — |
| angle | NPARRAY | — |