Nodes/comfyui_cv/CV Constant Like
ComfyUI Node

CV Constant Like

Outputs a uint8 array filled with a constant, with the same width/height as the input. Typical use: make an all-white coverage mask, warp it with the exact same matrix as its image (borderMode=BORDER_CONSTANT, or the border reflection turns the whole canvas white), and feed the warped masks to 'CV Feather Blend' so each canvas pixel knows which sources actually cover it.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Constant Like
  • nparray
  • nparray
value255
channelsgrayscale (single channel)
Categoryimage/CV/features

Inputs (3)

NameTypeDefaultDescription
nparrayNPARRAY,IMAGE,MASKOnly its width/height are used. 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.
valueINT2550–255Fill value 0-255 (255 = white coverage mask).
channelsCOMBOgrayscale (single channel)Masks are single-channel; 'same as input' replicates the input's channel count for image-typed uses.

Outputs (1)

NameTypeDescription
nparrayNPARRAY