ComfyUI  >  Nodes  >  comfyUI_FrequencySeparation_RGB-HSV >  Frequency Separation HSV Node

ComfyUI Node: Frequency Separation HSV Node

Class Name

FrequencySeparationHSV

Category
image/filters
Author
risunobushi (Account age: 677 days)
Extension
comfyUI_FrequencySeparation_RGB-HSV
Latest Updated
6/14/2024
Github Stars
0.0K

How to Install comfyUI_FrequencySeparation_RGB-HSV

Install this extension via the ComfyUI Manager by searching for  comfyUI_FrequencySeparation_RGB-HSV
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyUI_FrequencySeparation_RGB-HSV 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

Frequency Separation HSV Node Description

Decomposes image into high and low-frequency components using HSV color space for nuanced editing control.

Frequency Separation HSV Node:

The FrequencySeparationHSV node is designed to decompose an image into its high and low-frequency components using the HSV (Hue, Saturation, Value) color space. This technique is particularly useful in image processing and editing, allowing you to isolate fine details (high frequencies) from broader color and lighting variations (low frequencies). By converting the image to HSV, the node focuses on the Value channel to perform the separation, ensuring that the color information remains intact while processing the luminance. This method is beneficial for tasks such as texture enhancement, noise reduction, and detail preservation, providing a more nuanced control over the image's visual elements.

Frequency Separation HSV Node Input Parameters:

image

The image parameter is the input image that you want to process. It should be a 3-channel RGB image. The node will convert this image to the HSV color space to perform the frequency separation. Ensure that the image has the correct dimensions and color channels to avoid errors during processing.

blur_radius

The blur_radius parameter determines the radius of the Gaussian blur applied to the Value channel of the HSV image. This blur helps in separating the low-frequency components by smoothing out the fine details. A larger blur radius will result in a smoother low-frequency image, while a smaller radius will preserve more details in the high-frequency image. The value should be an odd integer to ensure proper Gaussian blur application. Typical values range from 3 to 21, with a default value of 5.

Frequency Separation HSV Node Output Parameters:

high_freq_result

The high_freq_result parameter is the output tensor containing the high-frequency components of the input image. This output highlights the fine details and textures by subtracting the blurred Value channel from the original Value channel and normalizing the result. The high-frequency image is stacked to match the RGB channels for consistency.

low_freq_result

The low_freq_result parameter is the output tensor containing the low-frequency components of the input image. This output represents the broader color and lighting variations by replacing the original Value channel with the blurred Value channel. The low-frequency image is then converted back to the RGB color space.

Frequency Separation HSV Node Usage Tips:

  • To enhance fine details in an image, use a smaller blur_radius to retain more high-frequency information.
  • For noise reduction, use a larger blur_radius to smooth out the high-frequency noise while preserving the overall structure of the image.
  • Experiment with different blur_radius values to find the optimal balance between detail preservation and noise reduction for your specific image.

Frequency Separation HSV Node Common Errors and Solutions:

Image at index {i} does not have 3 channels

  • Explanation: This error occurs when the input image does not have exactly 3 color channels (RGB).
  • Solution: Ensure that the input image is a 3-channel RGB image before passing it to the node.

ValueError: Image at index {i} does not have 3 channels

  • Explanation: This error indicates that one of the images in the batch does not have the required 3 channels.
  • Solution: Check the batch of images to ensure all images are in RGB format with 3 channels.

Invalid blur radius

  • Explanation: The blur_radius parameter must be an odd integer.
  • Solution: Provide an odd integer value for the blur_radius parameter, such as 3, 5, 7, etc.

High frequency values out of range

  • Explanation: The high-frequency values must be clipped to the range [0, 1].
  • Solution: Ensure that the high-frequency values are properly normalized and clipped within the range [0, 1] during processing.

Frequency Separation HSV Node Related Nodes

Go back to the extension to check out more related nodes.
comfyUI_FrequencySeparation_RGB-HSV
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.