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

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.phase
  • x
  • y
  • nparray
angleInDegreesfalse
Categoryimage/CV/low-level/cv2 P

Inputs (3)

NameTypeDefaultDescription
xNPARRAY,IMAGE,MASKinput 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.
yNPARRAY,IMAGE,MASKinput 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.
angleInDegreesoptBOOLEANfalsewhen true, the function calculates the angle in degrees, otherwise, they are measured in radians. Preset to the OpenCV default (False).

Outputs (1)

NameTypeDescription
nparrayNPARRAY