Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance image quality by cleaning alpha channel for precise transparency adjustments using advanced filtering techniques.
AlphaClean is a powerful node designed to enhance the quality of images by cleaning up the alpha channel, which represents transparency. This node is particularly useful for AI artists who work with images that require precise transparency adjustments. By applying a series of advanced filtering techniques, AlphaClean smooths out the alpha channel, fills in holes, and adjusts the transparency levels to achieve a cleaner and more refined result. The main goal of AlphaClean is to improve the visual quality of images with transparency, making them look more polished and professional.
This parameter takes a tensor of images that you want to process. The images should be in a format compatible with PyTorch tensors.
The radius parameter controls the size of the Gaussian blur applied to the alpha channel. A larger radius results in a more significant blur effect, which can help smooth out rough edges in the alpha channel. The value should be an integer, with a typical range from 1 to 64. The default value is 8.
This parameter determines whether the node should fill in small holes in the alpha channel. A higher value will fill larger holes, making the alpha channel more solid. The value should be an integer, with a typical range from 0 to 64. The default value is 0.
The white_threshold parameter sets the threshold for what is considered "white" in the alpha channel. Pixels with values above this threshold will be treated as fully opaque. The value should be a float between 0.0 and 1.0. The default value is 0.1.
This parameter allows you to apply an additional clipping factor to the alpha channel, which can help enhance the contrast between transparent and opaque areas. The value should be a float, typically between 0.0 and 1.0. The default value is 0.1.
This output parameter returns a tensor of cleaned images. The images will have a refined alpha channel with smoother transitions and fewer artifacts, resulting in a more polished appearance.
radius
parameter to apply a stronger blur effect.fill_holes
parameter to fill them in and create a more solid alpha channel.white_threshold
parameter to fine-tune the transparency levels, especially if your images have varying degrees of opacity.extra_clip
parameter to enhance the contrast between transparent and opaque areas, making the alpha channel more defined.© Copyright 2024 RunComfy. All Rights Reserved.