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

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.polarToCart
  • magnitude
  • angle
  • nparray_0
  • nparray_1
angleInDegreesfalse
Categoryimage/CV/low-level/cv2 P

Inputs (3)

NameTypeDefaultDescription
magnitudeNPARRAY,IMAGE,MASKinput 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.
angleNPARRAY,IMAGE,MASKinput 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.
angleInDegreesoptBOOLEANfalsewhen true, the input angles are measured in degrees, otherwise, they are measured in radians. Preset to the OpenCV default (False).

Outputs (2)

NameTypeDescription
nparray_0NPARRAY
nparray_1NPARRAY