Visit ComfyUI Online for ready-to-use ComfyUI environment
Generates mask highlighting image areas based on light intensity for AI artists to isolate and manipulate light-affected regions.
The Light Source Mask node is designed to generate a mask that highlights areas of an image based on light intensity. This node is particularly useful for AI artists who want to isolate and manipulate regions of an image that are affected by light sources. By applying a threshold to the image, the node identifies and enhances areas with higher light intensity, making it easier to apply further effects or adjustments. The node uses a Gaussian blur to smooth the mask, ensuring a natural transition between light and dark areas. This functionality is essential for creating realistic lighting effects and enhancing the overall visual quality of your artwork.
The image
parameter is the input image from which the light source mask will be generated. This parameter expects an image tensor with dimensions corresponding to batch size, height, width, and color channels. The image serves as the basis for identifying areas of high light intensity.
The threshold
parameter determines the light intensity level above which areas of the image will be included in the mask. It is a floating-point value ranging from 0.0 to 1.0, with a default value of 0.33. A lower threshold will include more areas in the mask, while a higher threshold will be more selective, focusing only on the brightest regions.
The mask
output is a tensor that represents the areas of the input image that exceed the specified light intensity threshold. This mask can be used to isolate and manipulate these regions in subsequent processing steps. The mask values range from 0.0 to 1.0, where higher values indicate stronger light intensity.
threshold
parameter to fine-tune the sensitivity of the mask. Lower values will capture more subtle lighting effects, while higher values will focus on the brightest areas.© Copyright 2024 RunComfy. All Rights Reserved.