Nodes/comfyui-jz/jz Double Threshold
ComfyUI Node

jz Double Threshold

A ComfyUI node in jz/image with 5 inputs and 3 outputs.

By j-zhang19·Created 22 days ago·Updated 6 days ago· 2
jz Double Threshold
  • image
  • input_alpha
  • image
  • trimap
  • alpha
low0.15
high0.85
invert_input_alphatrue
Categoryjz/image

Inputs (5)

NameTypeDefaultDescription
imageIMAGE
lowFLOAT0.150–1luma at or below this -> black
highFLOAT0.850–1luma at or above this -> white
input_alphaoptMASKinput transparency; LoadImage's MASK output goes here
invert_input_alphaoptBOOLEANtrueLoadImage masks are 1 = transparent; keep on when wiring that, turn off if your mask is 1 = opaque

Outputs (3)

NameTypeDescription
imageIMAGE
trimapMASK
alphaMASK