Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust image edges' intensity values for enhanced contrast and artistic effects, with clipping option for valid output range.
The ColorModEdges
node is designed to modify the edges of an image by adjusting the intensity values based on specified parameters. This node is particularly useful for enhancing or diminishing the contrast of edges within an image, allowing for more dynamic and visually appealing results. By manipulating the low, pivot, and high values, you can control how the image's intensity values are redistributed, which can be beneficial for various artistic effects or preprocessing steps in image analysis. The node also offers an option to clip the output values to ensure they remain within a valid range, maintaining the integrity of the image data.
The image
parameter is the input image that you want to process. This image should be in a format compatible with the node, typically a tensor representing the image data.
The low
parameter adjusts the intensity values below the pivot point. It has a default value of 1.0, with a minimum of 0.0 and a maximum of 2.0, and can be adjusted in steps of 0.01. Lowering this value will decrease the intensity of the lower range, while increasing it will enhance the lower intensity values.
The pivot
parameter sets the pivot point around which the intensity values are adjusted. It has a default value of 0.5, with a minimum of 0.0 and a maximum of 1.0, and can be adjusted in steps of 0.01. This value determines the threshold that separates the low and high intensity adjustments.
The high
parameter adjusts the intensity values above the pivot point. It has a default value of 1.0, with a minimum of 0.0 and a maximum of 2.0, and can be adjusted in steps of 0.01. Lowering this value will decrease the intensity of the higher range, while increasing it will enhance the higher intensity values.
The clip
parameter is a boolean option that determines whether the output values should be clipped to the range [0.0, 1.0]. The default value is True. When set to True, the output values are constrained within this range, preventing any overflow or underflow in the image data.
The image
parameter is the processed image output from the node. This image will have its intensity values adjusted based on the specified low, pivot, and high parameters, and optionally clipped to ensure they remain within a valid range. The output image retains the same dimensions and format as the input image.
low
, pivot
, and high
values to achieve the desired contrast enhancement or reduction in your image. Small adjustments can lead to significant changes in the visual output.clip
parameter to ensure that the output image values remain within a valid range, especially if you are planning to use the image in further processing steps..to(device)
to move tensors to the appropriate device.© Copyright 2024 RunComfy. All Rights Reserved.