Visit ComfyUI Online for ready-to-use ComfyUI environment
Softens mask edges for smooth transitions, blending elements seamlessly in image processing and compositing tasks.
The FeatherMask node is designed to soften the edges of a given mask, creating a smooth transition between the masked and unmasked areas. This process, known as feathering, is particularly useful in image processing and compositing tasks where you want to blend elements seamlessly. By adjusting the feathering parameters, you can control the extent and direction of the feathering effect, ensuring that the mask integrates naturally with the surrounding image. This node is essential for achieving professional-quality results in your AI-generated artwork, as it helps to eliminate harsh edges and create more visually appealing compositions.
The mask
parameter is the input mask that you want to apply the feathering effect to. This mask defines the areas of the image that are affected by the feathering process. The mask should be provided in a format that the node can interpret, typically as a binary or grayscale image where different values represent different levels of masking.
The left
parameter specifies the number of pixels to feather from the left edge of the mask. The feathering effect will gradually decrease from the edge towards the center of the mask. The minimum value is 0, the maximum value is determined by the MAX_RESOLUTION
, and the default value is 0.
The top
parameter specifies the number of pixels to feather from the top edge of the mask. Similar to the left
parameter, this controls the feathering effect from the top edge towards the center. The minimum value is 0, the maximum value is determined by the MAX_RESOLUTION
, and the default value is 0.
The right
parameter specifies the number of pixels to feather from the right edge of the mask. This parameter works in the same way as the left
parameter but applies to the right edge. The minimum value is 0, the maximum value is determined by the MAX_RESOLUTION
, and the default value is 0.
The bottom
parameter specifies the number of pixels to feather from the bottom edge of the mask. This parameter works similarly to the top
parameter but applies to the bottom edge. The minimum value is 0, the maximum value is determined by the MAX_RESOLUTION
, and the default value is 0.
The output of the FeatherMask node is a modified mask with the feathering effect applied. This output mask will have softened edges based on the specified feathering parameters, creating a smooth transition between the masked and unmasked areas. The feathered mask can then be used in subsequent image processing or compositing tasks to achieve more natural and visually appealing results.
left
, top
, right
, and bottom
parameters and gradually increase them until you achieve the desired smoothness.left
, top
, right
, or bottom
exceed the maximum allowed resolution.MAX_RESOLUTION
.© Copyright 2024 RunComfy. All Rights Reserved.