ComfyUI > Nodes > ComfyUI-Image-Filters > Guided Filter Image

ComfyUI Node: Guided Filter Image

Class Name

GuidedFilterImage

Category
image/filters
Author
spacepxl (Account age: 295days)
Extension
ComfyUI-Image-Filters
Latest Updated
2024-06-22
Github Stars
0.08K

How to Install ComfyUI-Image-Filters

Install this extension via the ComfyUI Manager by searching for ComfyUI-Image-Filters
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Filters in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Guided Filter Image Description

Enhance image quality with guided filter for edge-preserving smoothing and detail enhancement.

Guided Filter Image:

The GuidedFilterImage node is designed to enhance the quality and detail of images by applying a guided filter. This filter uses a guidance image to influence the filtering process, allowing for edge-preserving smoothing and detail enhancement. The guided filter is particularly useful in scenarios where you want to smooth an image while maintaining sharp edges, such as in image denoising, HDR compression, and detail enhancement. By leveraging the guidance image, the filter can effectively distinguish between noise and important features, resulting in a more visually appealing output.

Guided Filter Image Input Parameters:

images

This parameter represents the input image(s) that you want to filter. The images should be in a format that the node can process, typically a tensor or array of image data.

guide

The guide parameter is the guidance image that influences the filtering process. This image helps the filter to preserve edges and important details while smoothing other areas. The guide image should be of the same dimensions as the input images.

size

The size parameter controls the radius of the filter. It determines the extent of the area around each pixel that the filter considers. A larger size results in more smoothing, while a smaller size preserves more detail. The value ranges from 0 to 1023, with a default of 4.

sigma

The sigma parameter affects the sensitivity of the filter to differences in intensity. A higher sigma value results in more aggressive smoothing, while a lower value preserves more detail. The value ranges from 0.01 to 100.0, with a default of 0.1 and a step size of 0.01.

Guided Filter Image Output Parameters:

IMAGE

The output is the filtered image, which has undergone the guided filtering process. This image retains important details and edges while reducing noise and smoothing other areas, resulting in a visually enhanced version of the input image.

Guided Filter Image Usage Tips:

  • For subtle smoothing while preserving details, use a smaller size value and a lower sigma value.
  • If you need more aggressive noise reduction, increase the size and sigma values, but be cautious as this may also reduce important details.
  • Use a high-quality guidance image that closely matches the content of the input image for the best results.

Guided Filter Image Common Errors and Solutions:

ValueError: Size parameter out of range

  • Explanation: This error occurs when the size parameter is set outside the allowed range of 0 to 1023. - Solution: Ensure that the size parameter is within the specified range.

ValueError: Sigma parameter out of range

  • Explanation: This error occurs when the sigma parameter is set outside the allowed range of 0.01 to 100.0.
  • Solution: Ensure that the sigma parameter is within the specified range.

TypeError: Input images and guide must have the same dimensions

  • Explanation: This error occurs when the input images and the guide image do not have matching dimensions.
  • Solution: Verify that the input images and the guide image have the same dimensions before processing.

Guided Filter Image Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Filters
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.