Visit ComfyUI Online for ready-to-use ComfyUI environment
Modify image areas with grey mask intensity 127 for highlighting or neutralizing, aiding in compositing tasks.
The ICLightApplyMaskGrey node is designed to modify specific areas of an image by applying a mask that turns the masked regions to a grey color with an intensity value of 127. This node is particularly useful for AI artists who need to highlight or neutralize certain parts of an image without completely removing them. By using this node, you can create a visual distinction between the masked and unmasked areas, which can be beneficial for various compositing and masking tasks. The primary function of this node is to blend the original image with a grey color based on the provided mask, ensuring that the masked areas are uniformly greyed out while the rest of the image remains unchanged.
The image
parameter is the input image that you want to modify. This image should be in a tensor format, typically representing the pixel values of the image. The function of this parameter is to provide the base image on which the mask will be applied. The image can be any standard image format that has been converted to a tensor.
The alpha
parameter is the mask that determines which areas of the image will be turned grey. This mask should also be in a tensor format and can have either two or three dimensions. If the mask has three dimensions, it will be automatically adjusted to match the image dimensions. The mask works by blending the original image with a grey color based on the mask's values, where the mask value of 1 keeps the original image and a value of 0 turns the area grey.
The output parameter is the modified image, which is returned as a tensor. This image will have the same dimensions as the input image but with the masked areas turned grey. The output image can be used for further processing or as a final output, depending on your workflow. The greyed-out areas will have an intensity value of 127, providing a clear visual distinction from the unmasked areas.
alpha
) is correctly aligned with the image dimensions to avoid unexpected results.© Copyright 2024 RunComfy. All Rights Reserved.