Visit ComfyUI Online for ready-to-use ComfyUI environment
Merge mask images with various operations for complex compositions, ideal for AI artists.
The Combine Masks node is designed to merge two mask images using various operations, allowing you to create complex mask compositions easily. This node is particularly useful for AI artists who need to manipulate and combine different mask layers to achieve specific effects in their artwork. By providing multiple operations such as union, intersection, difference, and more, the Combine Masks node offers a versatile toolset for mask manipulation. This node simplifies the process of combining masks, ensuring that you can achieve the desired results without needing extensive technical knowledge.
This parameter represents the first mask image to be combined. It serves as one of the two primary inputs for the combination operation. The quality and content of this image will directly impact the final result of the mask combination.
This parameter represents the second mask image to be combined. Similar to image1
, it is a crucial input for the combination operation. The interaction between image1
and image2
based on the selected operation will determine the final output.
This parameter specifies the operation to be performed on the two input masks. The available options are:
image2
from image1
.image1
by image2
.image1
is greater than or equal to image2
, otherwise 0.image1
is greater than image2
, otherwise 0.
The choice of operation will significantly affect the resulting mask.This parameter determines whether the result should be clamped between 0 and 1. If set to "yes", the output values will be restricted to this range, ensuring that the mask values remain valid.
This parameter specifies whether the result should be rounded to the nearest integer. If set to "yes", the output values will be rounded, which can be useful for creating binary masks.
The output parameter result
is the combined mask image resulting from the specified operation on image1
and image2
. This mask can be used in further processing or directly in your artwork, depending on the chosen operation and input parameters.
op
parameter) to see how they affect the combined mask. Each operation can produce vastly different results, so try multiple options to find the one that best suits your needs.clamp_result
parameter to ensure that the output mask values stay within a valid range, especially if you are performing operations that might result in values outside the 0-1 range.round_result
parameter is useful when you need a binary mask. Enable this option to convert the combined mask into a binary format, which can be helpful for certain types of image processing tasks.image1
and image2
have different dimensions.op
parameter.op
parameter and ensure that it is set to one of the valid options: "union (max)", "intersection (min)", "difference", "multiply", "multiply_alpha", "add", "greater_or_equal", or "greater".© Copyright 2024 RunComfy. All Rights Reserved.