ComfyUI Extension: ComfyUI-AdvancedAlphaProcessor
This is a custom node for ComfyUI. Features:Removes white areas in the input image by making them transparent based on brightness, Outputs in black and transparent, Outputs in gray and transparent. This is a simple node with the above functionalities implemented. It also supports sequential processing.
Custom Nodes (1)
README
ComfyUI-AdvancedAlphaProcessor
これは何?
これはComfyUIのカスタムノードです。
- 入力画像の白い部分を輝度で透明に抜く
- 黒と透明で出力する
- グレーと透明で出力する
以上の機能を実装したシンプルなノードです。
連番処理可能。
- invert_alpha
反転する(デフォルトはオン)Output出力から出る - midrange_cut
グレーカットする(デフォルトはオフ)Output出力から結果が出る。 - cut_threshold
midrange_cutのしきい値調整(midrange_cutがオフの場合は無効) - gamma_correction
アルファチャンネル生成前の画像の明るさの調整。値を大きくすると明るい部分がより明るく暗い部分がより暗くなり、値を小さくすると中間調のコントラストが強調される。 - remove_black_threshold
Output出力の黒部分をカットしてグレーを残すしきい値調整。Black Removed出力から出る。(midrange_cutは基本オフで使用する) - force_grayscale
グレースケールで実行する(デフォルトはオン オンのほうが精度がいい)
連番処理をする場合入力をLoad Imagesなどの複数入力へ変更。