Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust tonal range by remapping pixel values between specified black and white points for contrast enhancement and brightness normalization.
The RemapRange
node is designed to adjust the tonal range of an image by remapping its pixel values between specified black and white points. This node is particularly useful for enhancing the contrast of an image or for normalizing the brightness levels across different images. By setting the black and white points, you can control the minimum and maximum intensity values, effectively stretching or compressing the image's histogram. This process can help in bringing out details in both the shadows and highlights, making the image more visually appealing and balanced.
This parameter represents the input image that you want to process. The image should be in the form of a tensor, which is a multi-dimensional array commonly used in machine learning and image processing tasks. The node will apply the remapping operation to this image based on the specified black and white points.
The blackpoint
parameter sets the lower bound of the tonal range. Pixel values below this point will be mapped to 0 (black). This parameter allows you to control the darkest parts of the image. The value should be a float between 0.0 and 1.0, with a default value of 0.0. Adjusting this value can help in enhancing the shadow details of the image.
The whitepoint
parameter sets the upper bound of the tonal range. Pixel values above this point will be mapped to 1 (white). This parameter allows you to control the brightest parts of the image. The value should be a float between 0.01 and 1.0, with a default value of 1.0. Adjusting this value can help in enhancing the highlight details of the image.
The output is the processed image with its pixel values remapped according to the specified black and white points. This image will have enhanced contrast and normalized brightness levels, making it more visually balanced. The output is also in the form of a tensor, ready for further processing or display.
blackpoint
slightly above 0.0 and the whitepoint
slightly below 1.0.whitepoint
can help in bringing out details in those areas.blackpoint
can help in making the shadow details more visible.ValueError: blackpoint must be less than whitepoint
blackpoint
value is set equal to or higher than the whitepoint
value.blackpoint
is always less than the whitepoint
. Adjust the values accordingly to maintain this relationship.TypeError: image must be a tensor
RuntimeError: Input image tensor is not on CPU
.cpu()
method before passing it to the node.© Copyright 2024 RunComfy. All Rights Reserved.