Visit ComfyUI Online for ready-to-use ComfyUI environment
Manipulate, refine mask images with transformations, adjustments for precise, intricate shapes in digital artwork.
The > Mask Curves
node is designed to manipulate and refine mask images by applying various transformations and adjustments. This node is particularly useful for AI artists who need to create precise and intricate mask shapes for their digital artwork. By leveraging the capabilities of this node, you can achieve smooth transitions, sharp edges, and custom shapes in your masks, enhancing the overall quality and detail of your compositions. The node provides a range of functionalities, including thresholding, growing, cropping, inverting, and feathering masks, allowing for versatile and creative control over mask manipulation.
The mask
parameter is the primary input for the node, representing the mask image that you want to manipulate. This parameter accepts a mask image, which is typically a grayscale image where different shades of gray represent varying levels of transparency or selection. The mask image serves as the foundation for all subsequent transformations and adjustments applied by the node.
The value
parameter is used in the thresholding process to determine the cutoff point for converting the mask image into a binary mask. It accepts a floating-point number between 0.0 and 1.0, with a default value of 0.5. This parameter controls the sensitivity of the thresholding operation, where pixels with intensity values above the specified threshold are set to 1 (white), and those below are set to 0 (black).
The expand
parameter is used in the mask growing process to control the amount by which the mask is expanded or contracted. It accepts an integer value, with a default of 0, and can range from negative to positive values. Positive values expand the mask, while negative values contract it. This parameter allows you to adjust the size of the mask to better fit your desired shape.
The tapered_corners
parameter is a boolean option that determines whether the corners of the expanded or contracted mask should be tapered. It accepts a boolean value, with a default of True
. When enabled, the corners of the mask are smoothed out, creating a more natural and less angular shape.
The x
parameter specifies the horizontal starting point for cropping the mask. It accepts an integer value, with a default of 0, and can range from 0 to the maximum resolution of the mask image. This parameter allows you to define the left boundary of the cropped area.
The y
parameter specifies the vertical starting point for cropping the mask. It accepts an integer value, with a default of 0, and can range from 0 to the maximum resolution of the mask image. This parameter allows you to define the top boundary of the cropped area.
The width
parameter defines the width of the cropped area. It accepts an integer value, with a default of 512, and can range from 1 to the maximum resolution of the mask image. This parameter allows you to specify the horizontal extent of the cropped area.
The height
parameter defines the height of the cropped area. It accepts an integer value, with a default of 512, and can range from 1 to the maximum resolution of the mask image. This parameter allows you to specify the vertical extent of the cropped area.
The left
parameter is used in the feathering process to control the amount of feathering applied to the left edge of the mask. It accepts an integer value, with a default of 0, and can range from 0 to the maximum resolution of the mask image. This parameter allows you to create a smooth transition on the left edge of the mask.
The top
parameter is used in the feathering process to control the amount of feathering applied to the top edge of the mask. It accepts an integer value, with a default of 0, and can range from 0 to the maximum resolution of the mask image. This parameter allows you to create a smooth transition on the top edge of the mask.
The right
parameter is used in the feathering process to control the amount of feathering applied to the right edge of the mask. It accepts an integer value, with a default of 0, and can range from 0 to the maximum resolution of the mask image. This parameter allows you to create a smooth transition on the right edge of the mask.
The bottom
parameter is used in the feathering process to control the amount of feathering applied to the bottom edge of the mask. It accepts an integer value, with a default of 0, and can range from 0 to the maximum resolution of the mask image. This parameter allows you to create a smooth transition on the bottom edge of the mask.
The mask
output parameter represents the transformed mask image after all the specified adjustments and transformations have been applied. This output is a refined version of the input mask, with changes such as thresholding, growing, cropping, inverting, and feathering incorporated. The resulting mask can be used in further compositing or as a selection tool in your digital artwork.
value
parameter in thresholding to find the optimal cutoff point for your specific mask image, ensuring the desired areas are accurately selected.expand
parameter to fine-tune the size of your mask, either expanding it to cover more area or contracting it for a tighter fit.tapered_corners
for a smoother and more natural-looking mask shape, especially when working with organic or irregular forms.x
, y
, width
, and height
parameters to precisely crop your mask, focusing on the most relevant areas for your composition.left
, top
, right
, and bottom
parameters to create smooth transitions and avoid harsh edges.value
parameter for thresholding is outside the acceptable range (0.0 to 1.0).value
parameter to be within the range of 0.0 to 1.0.x
, y
, width
, height
) exceed the resolution of the mask image.left
, top
, right
, bottom
) exceed the resolution of the mask image.© Copyright 2024 RunComfy. All Rights Reserved.