Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply mathematical and statistical operations to images for enhanced manipulation and analysis.
The ImageMagick Evaluate node is a powerful tool designed to apply various mathematical and statistical operations to an image. This node allows you to manipulate image data by performing operations such as addition, subtraction, multiplication, and more complex functions like logarithmic and exponential transformations. By using this node, you can enhance, modify, or analyze images in a highly customizable manner. The Evaluate node is particularly useful for tasks that require precise control over pixel values, enabling you to achieve specific visual effects or prepare images for further processing. Its versatility makes it an essential component for AI artists looking to fine-tune their image outputs.
This parameter represents the input image that you want to process. The image should be in a format supported by ImageMagick, such as JPEG, PNG, or TIFF. The node will apply the specified evaluation operation to this image.
The operator parameter specifies the mathematical or statistical operation to be applied to the image. Options include undefined
, abs
, add
, addmodulus
, and
, cosine
, divide
, exponential
, gaussiannoise
, impulsenoise
, laplaciannoise
, leftshift
, log
, max
, mean
, median
, min
, multiplicativenoise
, multiply
, or
, poissonnoise
, pow
, rightshift
, rootmeansquare
, set
, sine
, subtract
, sum
, thresholdblack
, threshold
, thresholdwhite
, uniformnoise
, xor
, and inverse_log
. The default value is abs
. Each operator performs a different type of transformation on the image pixels, affecting the final output in unique ways.
The value parameter is a floating-point number that serves as an operand for the selected operator. It ranges from 0.0 to 1024, with a default value of 0.0 and a step size of 0.01. This value is used in conjunction with the operator to modify the image pixels. For example, if the operator is add
, this value will be added to each pixel in the image.
The channel parameter specifies which color channel(s) the operation should be applied to. Options include undefined
, red
, gray
, cyan
, green
, magenta
, blue
, yellow
, black
, alpha
, opacity
, index
, readmask
, write_mask
, meta
, composite_channels
, all_channels
, true_alpha
, rgb
, rgb_channels
, gray_channels
, sync_channels
, and default_channels
. The default value is red
. This allows you to target specific parts of the image, such as only the red channel, for more precise adjustments.
The output parameter is the processed image, which has undergone the specified evaluation operation. This image can be used for further processing or saved as the final output. The modifications made to the image will depend on the chosen operator, value, and channel parameters, resulting in a wide range of possible effects and enhancements.
log
can help in enhancing details in darker areas of the image.value
parameter incrementally to see how small changes affect the image. This can help you achieve the desired effect without over-processing.channel
parameter to apply operations selectively to specific color channels, which can be useful for color correction or creative effects.© Copyright 2024 RunComfy. All Rights Reserved.