Visit ComfyUI Online for ready-to-use ComfyUI environment
Inverts mask values to switch focus in image processing tasks.
The LayerMask: MaskInvert node is designed to invert the values of a given mask, effectively transforming areas of high intensity to low intensity and vice versa. This operation is particularly useful in image processing and manipulation tasks where the inversion of mask values can help in creating complementary effects or in preparing masks for further processing steps. By inverting the mask, you can easily switch the focus from one region of the image to another, making it a versatile tool for AI artists looking to refine their image editing workflows.
The mask
parameter is the primary input for the LayerMask: MaskInvert node. It accepts a mask, which is essentially a grayscale image where different intensity values represent different levels of transparency or selection. The mask should be provided in a format that the node can process, typically as a tensor. This parameter is crucial as it determines the initial state of the mask that will be inverted. There are no specific minimum, maximum, or default values for this parameter, but it must be a valid mask for the node to function correctly.
The output parameter mask
is the result of the inversion process. It returns a mask where the intensity values have been flipped; areas that were originally light become dark and vice versa. This inverted mask can then be used in subsequent image processing steps or as a final output, depending on your workflow. The output is provided as a tensor, maintaining the same dimensions as the input mask.
© Copyright 2024 RunComfy. All Rights Reserved.