Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > opencv-comfyui > OpenCV bilateralFilter_1

ComfyUI Node: OpenCV bilateralFilter_1

Class Name

bilateralFilter_1

Category
image/OpenCV
Author
geroldmeisinger (Account age: 1432days)
Extension
opencv-comfyui
Latest Updated
2026-07-22
Github Stars
0.04K

How to Install opencv-comfyui

Install this extension via the ComfyUI Manager by searching for opencv-comfyui
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter opencv-comfyui 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

OpenCV bilateralFilter_1 Description

BilateralFilter_1 smooths images while preserving edges using a bilateral filter for noise reduction.

OpenCV bilateralFilter_1:

The bilateralFilter_1 node is a powerful image processing tool designed to smooth images while preserving edges, making it ideal for tasks that require noise reduction without losing important details. This node utilizes the bilateral filter method, which is particularly effective in maintaining sharp edges by considering both spatial and intensity differences. The bilateral filter is widely used in applications such as photo editing, computer vision, and artistic rendering, where maintaining the integrity of edges is crucial. By applying this filter, you can achieve a balance between noise reduction and detail preservation, enhancing the overall quality of your images.

OpenCV bilateralFilter_1 Input Parameters:

src

The src parameter represents the source image that you want to process. It is a required input and should be provided as a NumPy array (NPARRAY). This parameter is crucial as it serves as the base image on which the bilateral filter will be applied.

d

The d parameter specifies the diameter of each pixel neighborhood used during filtering. It is an integer value that determines the extent of the area considered for smoothing. A larger value results in more extensive smoothing, while a smaller value preserves more details. The minimum value is 1, and there is no strict maximum, but it should be chosen based on the image size and desired effect.

sigmaColor

The sigmaColor parameter is a floating-point value that controls the filter's sensitivity to color differences. A higher value allows more significant color differences to be smoothed, resulting in a more pronounced blurring effect. Conversely, a lower value preserves more color details. This parameter is essential for balancing noise reduction and color preservation.

sigmaSpace

The sigmaSpace parameter is a floating-point value that determines the filter's sensitivity to spatial differences. It defines how far the filter considers pixels for smoothing based on their spatial distance. A larger value results in more extensive smoothing across the image, while a smaller value focuses on local areas. This parameter is crucial for controlling the spatial extent of the filter's effect.

borderType

The borderType parameter is an integer that specifies the method used to handle image borders during filtering. Different border types can affect the filter's behavior at the edges of the image, ensuring that the filter is applied consistently across the entire image. Common options include replicating the border pixels or wrapping around the image.

dst

The dst parameter is an optional output image that can be provided as a NumPy array (NPARRAY). If specified, the filtered image will be stored in this array. If not provided, the function will return a new array containing the filtered image. This parameter allows for flexibility in managing output storage.

OpenCV bilateralFilter_1 Output Parameters:

nparray

The nparray output parameter is the resulting image after applying the bilateral filter. It is returned as a NumPy array (NPARRAY) and contains the smoothed image with preserved edges. This output is essential for further processing or visualization, as it represents the enhanced version of the input image with reduced noise and maintained details.

OpenCV bilateralFilter_1 Usage Tips:

  • Experiment with different d, sigmaColor, and sigmaSpace values to achieve the desired balance between noise reduction and detail preservation. Start with small values and gradually increase them to see the effect on your image.
  • Use the borderType parameter to handle edge cases effectively. For most applications, the default border type should suffice, but experimenting with different types can yield better results for specific images.

OpenCV bilateralFilter_1 Common Errors and Solutions:

Invalid image format

  • Explanation: The src parameter must be a valid NumPy array representing an image. If the format is incorrect, the filter cannot be applied.
  • Solution: Ensure that the input image is correctly loaded as a NumPy array before passing it to the node.

Diameter value too large

  • Explanation: A very large d value can lead to excessive smoothing, losing important details in the image.
  • Solution: Adjust the d parameter to a smaller value to preserve more details while still reducing noise.

Incorrect border type

  • Explanation: The borderType parameter must be a valid integer corresponding to a supported border handling method.
  • Solution: Verify that the borderType value is correct and corresponds to one of the supported methods, such as cv2.BORDER_DEFAULT.

OpenCV bilateralFilter_1 Related Nodes

Go back to the extension to check out more related nodes.
opencv-comfyui
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.