Nodes/comfyui_cv/cv2.accumulateWeighted
ComfyUI Node

cv2.accumulateWeighted

Raw wrapper of cv2.accumulateWeighted(src, dst, alpha, mask?). 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.accumulateWeighted
  • src
  • dst
  • mask
  • nparray
alpha0.0000
Categoryimage/CV/low-level/cv2 A

Inputs (4)

NameTypeDefaultDescription
srcNPARRAY,IMAGE,MASKInput image as 1- or 3-channel, 8-bit or 32-bit floating point. 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.
dstNPARRAY,IMAGE,MASK%Accumulator image with the same number of channels as input image, 32-bit or 64-bit floating-point. The low-level cv2 function writes its result into this array in place, but this wrapper passes cv2 a private copy, so your input array is never modified. 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.
alphaFLOAT0.0000-1e+38–1e+38Weight of the input image.
maskoptNPARRAY,IMAGE,MASKOptional operation mask. 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.

Outputs (1)

NameTypeDescription
nparrayNPARRAY