Nodes/comfyui_cv/cv2.mean
ComfyUI Node

cv2.mean

Raw wrapper of cv2.mean(src, 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.mean
  • src
  • mask
  • mean
Categoryimage/CV/low-level/cv2 M

Inputs (2)

NameTypeDefaultDescription
srcNPARRAY,IMAGE,MASKinput array that should have from 1 to 4 channels so that the result can be stored in Scalar_ . 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.
maskoptNPARRAY,IMAGE,MASKoptional operation mask ot type CV_8U, CV_8S or CV_Bool. 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
meanSTRINGoptional operation mask ot type CV_8U, CV_8S or CV_Bool. A cv2 Scalar as the pack's literal spelling "(c0, c1, c2, c3)" - one value per channel, and exactly what every colour / borderValue input takes.