Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply Drago tonemapping algorithm to HDR images for SDR display, preserving details in shadows and highlights effectively.
The CV2TonemapDrago node is designed to apply the Drago tonemapping algorithm to high dynamic range (HDR) images, making them suitable for display on standard dynamic range (SDR) devices. This method is particularly effective for preserving details in both the shadows and highlights of an image, providing a more natural and visually appealing result. The Drago tonemapping algorithm is known for its ability to compress the dynamic range of an image while maintaining local contrast, making it an excellent choice for enhancing the visual quality of HDR images. By adjusting parameters such as gamma, saturation, bias, and mult, you can fine-tune the tonemapping process to achieve the desired visual effect, ensuring that your images look their best on any display.
This parameter represents the input image that you want to apply the Drago tonemapping algorithm to. The image should be in HDR format to fully utilize the capabilities of the tonemapping process.
The gamma parameter controls the gamma correction applied to the image. Gamma correction adjusts the brightness of the image, with higher values resulting in a brighter image and lower values resulting in a darker image. The default value is 1.0, with a minimum of 0.0 and a maximum of 8.0, allowing for fine-tuning in increments of 0.01.
The saturation parameter adjusts the color saturation of the image. Increasing the saturation value will make the colors in the image more vivid, while decreasing it will make the colors more muted. The default value is 1.0, with a minimum of 0.0 and a maximum of 8.0, allowing for precise control over the color intensity.
The bias parameter influences the overall brightness and contrast of the image. A higher bias value will increase the brightness and contrast, while a lower value will decrease them. The default value is 1.0, with a minimum of 0.0 and a maximum of 1.0, providing a range of adjustment to suit different image characteristics.
The mult parameter is a multiplier that scales the final output image. This allows you to adjust the overall intensity of the tonemapped image, making it brighter or darker as needed. The default value is 1.0, with a minimum of 0.0 and a maximum of 8.0, offering flexibility in the final image output.
The output parameter is the tonemapped image, which has been processed using the Drago algorithm. This image is now suitable for display on standard dynamic range (SDR) devices, with enhanced details in both shadows and highlights, and adjusted brightness and color saturation according to the input parameters.
TypeError: 'NoneType' object is not callable
createTonemapDrago
function. You may need to update or reinstall OpenCV.ValueError: Input image must be in HDR format
Invalid parameter value
© Copyright 2024 RunComfy. All Rights Reserved.