Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply feathering effect to masks for smooth transitions and blending edges, enhancing visual quality.
The FeatheredMask node is designed to apply a feathering effect to a given mask, which helps in creating smooth transitions and blending edges. This node is particularly useful in scenarios where you need to soften the boundaries of a mask to achieve a more natural and seamless integration with other elements in your artwork. By adjusting the feathering parameters, you can control the extent and intensity of the feathering effect, allowing for precise customization to suit your specific needs. The main goal of this node is to enhance the visual quality of your masks by reducing harsh edges and creating a more polished and professional look.
The mask
parameter is the primary input for the FeatheredMask node. It represents the mask that you want to apply the feathering effect to. This input is essential as it serves as the base for the feathering process. The mask should be in a format that the node can process, typically a binary or grayscale image where the feathering will be applied to the edges.
The left
parameter controls the feathering effect on the left edge of the mask. It is an integer value with a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. Increasing this value will extend the feathering effect further into the mask from the left edge, creating a smoother transition.
The top
parameter controls the feathering effect on the top edge of the mask. Similar to the left
parameter, it is an integer value with a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. Adjusting this value will determine how far the feathering effect reaches from the top edge into the mask.
The right
parameter controls the feathering effect on the right edge of the mask. It is an integer value with a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. By increasing this value, you can extend the feathering effect from the right edge into the mask, softening the transition.
The bottom
parameter controls the feathering effect on the bottom edge of the mask. This integer value has a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. Modifying this value will affect how far the feathering effect extends from the bottom edge into the mask, ensuring a smooth blend.
The output parameter MASK
is the resulting mask after the feathering effect has been applied. This output retains the original dimensions of the input mask but with softened edges as specified by the feathering parameters. The feathered mask can then be used in further processing or compositing tasks to achieve a more refined and visually appealing result.
left
, top
, right
, and bottom
parameters and gradually increase them until you reach the desired smoothness.left
, top
, right
, or bottom
exceed the dimensions of the input mask.© Copyright 2024 RunComfy. All Rights Reserved.