ComfyUI Node
H3 Defringe Matte (H3 Editor)
Un-premultiply the estimated border backdrop colour from partially covered foreground pixels (BiRefNet or similar soft mattes) and tighten alpha coverage, eliminating halos on game sprites and props. On a flat backdrop of any colour it also keys out the backdrop a matte leaves inside or beside the subject.
H3 Defringe Matte (H3 Editor)
- images
- mask
- depth
- rgba
- matte
◄alpha_low0.12►
◄alpha_high0.88►
◄invert_maskfalse►
◄key_backdroptrue►
◄alphasoft►
Categoryminimax/h3
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| mask | MASK | — | |
| alpha_lowopt | FLOAT | 0.120–0.5 | — |
| alpha_highopt | FLOAT | 0.880.5–1 | — |
| invert_maskopt | BOOLEAN | false | Flip mask polarity when the upstream background remover outputs background=1. |
| key_backdropopt | BOOLEAN | true | On a flat backdrop of any colour, also remove what the matte keeps by mistake: pockets of backdrop the subject encloses and patches beside it. Ignored on a scene. |
| alphaopt | COMBO | soft | soft keeps partly covered edge pixels. hard makes every pixel fully in or out. |
| depthopt | IMAGE | A depth map for each image, from any depth node, near bright or near dark. On a flat backdrop it tells leftover backdrop from the subject's own surfaces of that colour. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| rgba | IMAGE | — |
| matte | MASK | — |