Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile node for manipulating image masks with various operations to refine and customize masked areas effectively.
Mask Ops is a versatile node designed to perform various operations on image masks, which are essential in image processing and AI art creation. This node allows you to manipulate masks based on different parameters, enabling you to refine and customize the masked areas of your images. Whether you need to blend, invert, blur, or adjust the levels of your masks, Mask Ops provides a comprehensive set of tools to achieve your desired effects. By leveraging these capabilities, you can enhance the precision and quality of your image editing tasks, making it easier to create complex and visually appealing compositions.
This parameter represents the input image on which the mask operations will be performed. It is essential as it provides the base image data that will be manipulated according to the specified mask operations.
This parameter allows you to input text that can be used in conjunction with the mask operations. The text can influence the mask creation or modification process, depending on the specific use case.
This boolean parameter determines whether the mask should be processed separately from the image. If set to true, the mask operations will be applied independently, allowing for more precise control over the mask. The default value is false.
This parameter controls the sigma value for text-based mask operations. It affects the spread or blur of the text within the mask, influencing the softness or sharpness of the text edges. The value can be adjusted to achieve the desired effect.
This boolean parameter specifies whether the input text should be used in the mask operations. If set to true, the text will be incorporated into the mask processing, allowing for text-based mask modifications. The default value is false.
This parameter defines the percentage of blending between the original image and the mask. It allows you to control the intensity of the mask effect on the image, with a range from 0.0 to 1.0. The default value is 0.5.
This parameter sets the black level threshold for the mask. Pixels with values below this threshold will be considered part of the mask. It helps in defining the areas of the image that should be masked out. The value ranges from 0.0 to 1.0, with a default of 0.0.
This parameter sets the mid-level threshold for the mask. It defines the midpoint value for mask intensity, allowing for finer control over the mask's gradient. The value ranges from 0.0 to 1.0, with a default of 0.5.
This parameter sets the white level threshold for the mask. Pixels with values above this threshold will be considered part of the mask. It helps in defining the areas of the image that should remain visible. The value ranges from 0.0 to 1.0, with a default of 1.0.
This parameter specifies the color channel to be used for mask operations. Options include "red", "green", "blue", and "alpha". Selecting the appropriate channel allows for targeted mask modifications based on the chosen color component.
This parameter controls the amount by which the mask should be shrunk or grown. Positive values will expand the mask, while negative values will contract it. This allows for precise adjustments to the mask size, with a default value of 0.
This boolean parameter determines whether the mask should be inverted. If set to true, the mask values will be flipped, turning masked areas into visible areas and vice versa. The default value is false.
This parameter sets the radius for blurring the mask. A higher value will result in a more blurred mask, creating smoother transitions between masked and unmasked areas. The value can be adjusted to achieve the desired level of blur, with a default of 5.0.
This parameter represents the input mask to be used in the operations. It provides the initial mask data that will be manipulated according to the specified parameters.
This output parameter provides the resulting image after the mask operations have been applied. It reflects the combined effect of the input image and the modified mask, showcasing the final composition.
This output parameter provides the modified mask after the operations have been applied. It reflects the changes made to the original mask based on the specified parameters, allowing for further use or analysis.
This output parameter provides the mapping of the mask operations, detailing how the input parameters influenced the final mask. It serves as a reference for understanding the modifications made during the process.
© Copyright 2024 RunComfy. All Rights Reserved.