Visit ComfyUI Online for ready-to-use ComfyUI environment
Image processing node for dividing or subtracting pixel values, useful for comparing and blending images based on frequency components.
The FrequencySeparation
node is designed to process two images by either dividing or subtracting their pixel values, allowing for nuanced image manipulation and analysis. This node is particularly useful in scenarios where you need to compare or blend images based on their frequency components, which can be crucial in tasks like image enhancement, noise reduction, or artistic effects. By handling images with slight size mismatches through resizing, it ensures compatibility and seamless processing. The node's ability to perform operations like division and subtraction on images makes it a versatile tool in the AI artist's toolkit, enabling creative and technical exploration of image data.
image1
is the primary image used in the operation, serving as the numerator in division or the minuend in subtraction. This image is the reference point for the operation, and its dimensions are used to determine if resizing of image2
is necessary. There are no specific minimum or maximum values for this parameter, but it should be an image tensor compatible with PyTorch operations.
image2
is the secondary image used in the operation, acting as the denominator in division or the subtrahend in subtraction. If image2
has a slight size mismatch with image1
(up to 3 pixels in height or width), it will be resized to match image1
to ensure proper processing. Like image1
, it should be an image tensor compatible with PyTorch operations.
The operation
parameter determines the mathematical operation to be performed between image1
and image2
. It can be set to either "divide" or "subtract". In "divide" mode, image1
is divided by image2
, with a small epsilon added to prevent division by zero. In "subtract" mode, image2
is subtracted from image1
. This parameter is crucial as it defines the nature of the image processing task.
The result
is the processed image obtained after applying the specified operation between image1
and image2
. This output is clamped to ensure that pixel values remain within a valid range, typically between 0 and 1, making it suitable for further image processing or visualization.
The original
output simply returns the image1
input, allowing you to retain the original image for comparison or further processing. This can be useful for side-by-side evaluations of the processed and unprocessed images.
{h1}
x{w1}
, Image2: {h2}
x{w2}
image1
and image2
exceeds 3 pixels in either dimension, making them incompatible for processing.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.