Nodes/ComfyUI-EditUtils/EditUtils: Alpha Noise Filter lrzjason
ComfyUI Node

EditUtils: Alpha Noise Filter lrzjason

Clean the alpha channel of a Qwen-Image 2.1 alpha generation: clip low-value alpha noise, drop small isolated alpha islands, then feather inwards from the edge, and output a clean RGBA image and its mask. Only the alpha channel is modified, and feathering only ever reduces alpha inside the matte, so the silhouette never grows into the transparent background.

By lrzjason·Created 9 months ago·Updated 2 days ago· 256
EditUtils: Alpha Noise Filter lrzjason
  • image
  • mask
  • image
  • mask
◄alpha_threshold0.10►
◄min_area100►
◄feather2.0►
◄invert_maskfalse►
Categoryimage

Inputs (6)

NameTypeDefaultDescription
imageIMAGERGBA image, e.g. the VAEDecode output of the Qwen-Image 2.1 VAE
maskoptMASKUsed as the alpha when the input image has no alpha channel (RGB input)
alpha_thresholdoptFLOAT0.100–1Alpha below this is treated as low-value noise and clipped to 0 (0 disables)
min_areaoptINT1000–65536Drop isolated alpha islands smaller than this many pixels (0 disables)
featheroptFLOAT2.00–32Width in pixels of the gradient band created inside the edge: fully transparent at the matte boundary, rising smoothly to fully opaque `feather` px inwards. The matte never grows outwards, so no pixel the generator left transparent can become visible (0 = hard edge)
invert_maskoptBOOLEANfalseOutput 1 - alpha as the mask (white = transparent, the ComfyUI inpaint convention)

Outputs (2)

NameTypeDescription
imageIMAGE—
maskMASK—