ComfyUI Node
cv2.polarToCart
Raw wrapper of cv2.polarToCart(magnitude, angle, angleInDegrees?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.polarToCart
- magnitude
- angle
- nparray_0
- nparray_1
◄angleInDegreesfalse►
Categoryimage/CV/low-level/cv2 P
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| magnitude | NPARRAY,IMAGE,MASK | input floating-point array of magnitudes of 2D vectors; it can be an empty matrix (=Mat()), in this case, the function assumes that all the magnitudes are =1; if it is not empty, it must have the same size and type as angle. 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. | |
| angle | NPARRAY,IMAGE,MASK | input floating-point array of angles 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. | |
| angleInDegreesopt | BOOLEAN | false | when true, the input angles are measured in degrees, otherwise, they are measured in radians. Preset to the OpenCV default (False). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| nparray_0 | NPARRAY | — |
| nparray_1 | NPARRAY | — |