Nodes/comfyui_cv/cv2.cartToPolar
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.cartToPolar
  • x
  • y
  • magnitude
  • angle
angleInDegreesfalse
Categoryimage/CV/low-level/cv2 C

Inputs (3)

NameTypeDefaultDescription
xNPARRAY,IMAGE,MASKarray 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.
yNPARRAY,IMAGE,MASKarray 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.
angleInDegreesoptBOOLEANfalsea flag, indicating whether the angles are measured in radians (which is by default), or in degrees. Preset to the OpenCV default (False).

Outputs (2)

NameTypeDescription
magnitudeNPARRAY
angleNPARRAY