Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply rank filter to images for noise reduction, edge detection, and feature enhancement with adjustable parameters for control.
The ImageFilterRank node is designed to apply a rank filter to a set of images, which is a type of non-linear filter used in image processing. This filter is particularly useful for tasks that require the enhancement or suppression of specific features within an image, such as noise reduction or edge detection. By adjusting the rank and size parameters, you can control the filter's behavior to achieve the desired effect, making it a versatile tool for various image enhancement applications. The rank filter works by sorting the pixel values within a specified neighborhood and selecting the pixel value at a given rank, allowing for fine-tuned control over the filtering process.
This parameter accepts a set of images that you want to apply the rank filter to. The images should be in a compatible format that the node can process.
The size parameter determines the dimensions of the neighborhood around each pixel that the filter will consider. It is an integer value with a default of 2, a minimum of 0, and increments in steps of 2. Increasing the size will consider a larger neighborhood, which can affect the filter's ability to smooth or preserve details in the image.
The rank parameter specifies the position in the sorted list of pixel values within the neighborhood that will be selected as the output value. It is an integer value with a default of 1 and increments in steps of 1. Adjusting the rank allows you to control the filter's behavior, such as emphasizing certain features or reducing noise.
The output is a set of images that have been processed by the rank filter. The filtered images will reflect the adjustments made based on the size and rank parameters, showing enhanced or suppressed features as specified.
© Copyright 2024 RunComfy. All Rights Reserved.