Visit ComfyUI Online for ready-to-use ComfyUI environment
Merge luminosity from black-and-white image with color image for enhanced visual appeal and detail retention.
The ColorBlend node is designed to merge a black-and-white image with a color image, effectively transferring the luminosity from the black-and-white image to the color image. This process enhances the color image by replacing its luminosity channel with that of the black-and-white image, resulting in a blended image that retains the color information while adopting the luminosity characteristics of the black-and-white image. This technique is particularly useful for artists looking to combine the contrast and detail of a black-and-white image with the vibrant hues of a color image, creating a visually appealing result that leverages the strengths of both input images.
The bw_layer
parameter represents the black-and-white image that will provide the luminosity information for the blending process. This image is converted to grayscale, and its luminosity channel is used to replace the luminosity channel of the color image. The quality and contrast of the black-and-white image directly impact the final blended result, making it crucial to choose an image with the desired luminosity characteristics.
The color_layer
parameter is the color image that will be blended with the black-and-white image. This image is converted to the LAB color space, where its luminosity channel is replaced by the luminosity channel of the black-and-white image. The color information from this image is preserved, while its luminosity is adjusted based on the black-and-white image, resulting in a harmonious blend of color and luminosity.
The output parameter is an IMAGE
that represents the final blended result. This image combines the color information from the color_layer
with the luminosity from the bw_layer
, producing a visually enhanced image that leverages the strengths of both input images. The output image is in BGR color space, ready for further processing or display.
bw_layer
) has the desired contrast and detail, as its luminosity will significantly influence the final blended image.bw_layer
and color_layer
to achieve the best quality in the blended result.bw_layer
and color_layer
do not match.© Copyright 2024 RunComfy. All Rights Reserved.