ComfyUI Node
Chroma_Key_Alpha
A ComfyUI node in FunctionAsTexture with 5 inputs and 1 output.
Chroma_Key_Alpha
- imga
- imgb
- IMAGE
◄formula#Choma threshold: pfloat1
#Soft Blend: pfloat2
imgb =imgc + imgb[0, 1, 1, :]
chomachannel = np.sum((imga * imgb), axis=-1)
softmask = chomachannel - np.sum(imga , axis=-1)/3
result = 1- np.ceil(softmask - pfloat1) - softmask * pfloat2►
◄pfloat10.10►
◄pfloat220.00►
CategoryFunctionAsTexture
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| formula | STRING | #Choma threshold: pfloat1 #Soft Blend: pfloat2 imgb =imgc + imgb[0, 1, 1, :] chomachannel = np.sum((imga * imgb), axis=-1) softmask = chomachannel - np.sum(imga , axis=-1)/3 result = 1- np.ceil(softmask - pfloat1) - softmask * pfloat2 | — |
| pfloat1 | FLOAT | 0.100–1 | Choma threshold: pfloat1. |
| pfloat2 | FLOAT | 20.000–100 | Soft Blend: pfloat2. |
| imgaopt | IMAGE | image color | |
| imgbopt | IMAGE | chroma color |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |