Visit ComfyUI Online for ready-to-use ComfyUI environment
Convert HDR images to LDR images with exposure control for AI artists using OpenCV and PyTorch.
The LoadHDRImage
node is designed to load High Dynamic Range (HDR) images and convert them into a batch of Low Dynamic Range (LDR) images with specified exposure levels. This node is particularly useful for AI artists who want to work with HDR images and simulate different lighting conditions by adjusting the exposure. By converting HDR images to LDR images, you can better visualize and manipulate the image data for various artistic and technical purposes. The node leverages OpenCV for image processing and PyTorch for tensor manipulation, ensuring high performance and flexibility in handling image data.
This parameter specifies the HDR image file to be loaded. The image should be located in the input directory, and the node will read the file path from this location. The image file must be in a format that supports HDR, such as .hdr
. The correct selection of the image file is crucial as it forms the basis for generating the LDR images with different exposures.
This parameter allows you to specify the exposure levels for generating the LDR images. The exposures should be provided as a comma-separated string of integers, such as "-2,-1,0,1,2"
. Each value represents a different exposure level, where negative values darken the image and positive values brighten it. The default value is "-2,-1,0,1,2"
, which provides a range of exposures from two stops underexposed to two stops overexposed. Adjusting these values will impact the brightness and contrast of the resulting LDR images.
The output is a batch of LDR images, each corresponding to one of the specified exposure levels. These images are converted from the original HDR image and are represented as tensors. The batch of images can be used for further processing, visualization, or as input to other nodes in your workflow. Each image in the batch is normalized to the range [0, 1] and is in the format (C, H, W), where C is the number of color channels, H is the height, and W is the width.
This output is reserved for future use or additional functionalities that may involve masking operations on the images. Currently, it may not be utilized directly by the node but is included for compatibility with other nodes that expect a mask output.
.hdr
."-2,-1,0,1,2"
is a good starting point.© Copyright 2024 RunComfy. All Rights Reserved.