Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance images with sharpness and detail preservation using bilateral filter for noise reduction and edge preservation.
The BilateralFilterImage node is designed to enhance your images by applying a bilateral filter, which is particularly effective in reducing noise while preserving edges. This filter is highly beneficial for tasks that require maintaining the sharpness and details of an image, such as portrait retouching or artistic effects. By smoothing out the noise without blurring the edges, the bilateral filter ensures that the important features of your image remain intact, providing a cleaner and more visually appealing result.
This parameter accepts the image(s) you want to process. The input should be in the form of an image tensor. The node will apply the bilateral filter to each image in the batch.
This integer parameter controls the diameter of the pixel neighborhood used during filtering. It determines the extent of the area around each pixel that will be considered for the filtering process. The value ranges from 1 to 64, with a default value of 8. A larger size will result in more smoothing but may also blur fine details.
This float parameter defines the filter's sensitivity to color differences. It controls how much the filter considers the color intensity differences between pixels. The value ranges from 0.01 to 1000.0, with a default value of 0.5. A higher sigma_color value will result in more significant smoothing of color variations, which can help reduce color noise.
This float parameter specifies the filter's sensitivity to spatial differences. It determines how much the filter considers the distance between pixels. The value ranges from 0.01 to 1000.0, with a default value of 100.0. A higher sigma_space value will result in more extensive smoothing over larger areas, which can help reduce spatial noise.
The output is the filtered image tensor. The bilateral filter is applied to each input image, resulting in a cleaner image with reduced noise while preserving edges and important details. This output can be used for further processing or as a final result for display or analysis.
sigma_color
and sigma_space
parameters to find the right balance between noise reduction and detail preservation.size
parameter to focus the filter on smaller neighborhoods.sigma_color
values to see how it affects the color smoothing, especially in images with a lot of color variations.TypeError: Expected input to be a tensor
ValueError: Size parameter out of range
size
parameter is set outside the allowed range of 1 to 64. - Solution: Adjust the size
parameter to be within the valid range.ValueError: Sigma parameters out of range
sigma_color
or sigma_space
parameters are set outside their allowed ranges.sigma_color
is between 0.01 and 1000.0, and sigma_space
is between 0.01 and 1000.0. Adjust the values accordingly.© Copyright 2024 RunComfy. All Rights Reserved.