Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance images by reducing noise, smoothing textures, preserving edges with median filter for AI artists.
The Image Median Filter node is designed to enhance your images by reducing noise and smoothing out textures while preserving edges. This node applies a median filter, which is particularly effective for removing salt-and-pepper noise and other types of random noise from images. By replacing each pixel's value with the median value of the intensities in its neighborhood, the filter helps in maintaining the sharpness of edges while eliminating unwanted noise. This makes it an essential tool for AI artists looking to clean up their images without losing important details.
This parameter accepts the image you want to process. The image should be in a format compatible with the node, typically as a tensor.
This integer parameter defines the diameter of the pixel neighborhood used during the filtering process. A larger diameter will consider more pixels around each point, leading to a stronger smoothing effect. The value ranges from 0.1 to 255, with a default of 2.0. Adjusting this value allows you to control the extent of noise reduction and detail preservation.
This float parameter controls the filter's sensitivity to color differences. A higher value means the filter will consider a wider range of colors as similar, leading to more aggressive smoothing. The value ranges from -255.0 to 255.0, with a default of 10.0. Fine-tuning this parameter helps in balancing between noise reduction and color detail retention.
This float parameter determines the filter's sensitivity to spatial differences. A higher value means the filter will consider a larger spatial area around each pixel, resulting in more extensive smoothing. The value ranges from -255.0 to 255.0, with a default of 10.0. Adjusting this parameter allows you to control the spatial extent of the filtering effect.
The output is the processed image with the median filter applied. This image will have reduced noise and smoother textures while preserving important edges and details. The output is typically in the same format as the input image, usually as a tensor.
ValueError: Invalid diameter value
ValueError: Invalid sigma_color value
ValueError: Invalid sigma_space value
TypeError: Input image is not in the correct format
© Copyright 2024 RunComfy. All Rights Reserved.