Visit ComfyUI Online for ready-to-use ComfyUI environment
Manipulate mask images by expanding/contracting boundaries, refining edges for smoother transitions and precise control in image processing.
The MaskFastGrow node is designed to manipulate and enhance mask images by expanding or contracting their boundaries. This node is particularly useful for AI artists who need to refine mask edges for better image processing results. By adjusting the mask's size and optionally applying a blur effect, you can achieve smoother transitions and more precise control over the masked areas. The node's primary function is to grow or shrink the mask based on the specified parameters, making it a versatile tool for various image editing and AI art applications.
The mask
parameter is the input mask image that you want to modify. This mask is typically a binary or grayscale image where the regions of interest are highlighted. The mask should be provided as a tensor.
The invert_mask
parameter is a boolean option that allows you to invert the mask before processing. If set to True
, the mask will be inverted, meaning the areas that were originally masked will become unmasked and vice versa. This can be useful for certain image processing tasks where the inverse of the mask is needed. The default value is False
.
The grow
parameter is an integer that specifies the number of pixels by which the mask should be expanded or contracted. Positive values will grow the mask, while negative values will shrink it. This parameter allows you to fine-tune the size of the masked area. The default value is 0
, with a minimum of -999
and a maximum of 999
.
The blur
parameter is an integer that determines the amount of Gaussian blur to apply to the mask after it has been grown or shrunk. A higher value results in a more blurred mask, which can help create smoother transitions between masked and unmasked areas. The default value is 4
, with a minimum of 0
and a maximum of 999
.
The output parameter MASK
is the modified mask image after applying the specified grow, invert, and blur operations. This output is a tensor that can be used in subsequent image processing steps. The modified mask will have the same dimensions as the input mask but with adjusted boundaries and optional blurring.
grow
parameter and a moderate blur
value to smooth the edges.grow
parameter. This can be useful for refining the mask to exclude unwanted areas.invert_mask
parameter to see if inverting the mask before processing yields better results for your specific task.blur
values to create softer transitions between masked and unmasked areas, which can be particularly useful for blending effects.grow
parameter value is outside the allowed range of -999 to 999. - Solution: Adjust the grow
parameter to be within the specified range.blur
parameter value is outside the allowed range of 0 to 999. - Solution: Adjust the blur
parameter to be within the specified range.© Copyright 2024 RunComfy. All Rights Reserved.