Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply random thresholding effect to images for artistic and abstract results, adding unpredictability to AI art.
The ImageMagick Random Threshold node is designed to apply a random thresholding effect to an image, which can be particularly useful for creating artistic and abstract effects. This node works by randomly determining whether each pixel in the image should be set to a high or low value based on specified threshold ranges. The randomness introduced by this method can produce unique and visually interesting results, making it a valuable tool for AI artists looking to add a touch of unpredictability to their creations. By adjusting the threshold values and selecting specific color channels, you can fine-tune the effect to achieve the desired artistic outcome.
This parameter represents the input image that you want to apply the random threshold effect to. The image should be in a compatible format that the node can process.
This parameter sets the lower bound of the threshold range. Pixels with values below this threshold will be set to the low value. The default value is 0.0, with a minimum of 0.0 and a maximum of 1024. Adjusting this value can influence the amount of the image that is affected by the thresholding.
This parameter sets the upper bound of the threshold range. Pixels with values above this threshold will be set to the high value. The default value is 1.0, with a minimum of 0.0 and a maximum of 1024. Modifying this value can control the extent of the thresholding effect on the image.
This parameter allows you to select the specific color channel to which the random threshold effect will be applied. 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 is red
. Choosing different channels can produce varied artistic effects.
The output is the processed image with the random threshold effect applied. This image will reflect the changes based on the specified threshold values and selected color channel, resulting in a unique and potentially abstract visual effect.
low
and high
values to see how they affect the image. Lower values can make the effect more subtle, while higher values can create more dramatic changes.blue
channel might give a different look compared to the red
channel.ValueError: Invalid image format
TypeError: Unsupported parameter type
FLOAT
for low
and high
, and STRING
for channel
.RuntimeError: Image processing failed
© Copyright 2024 RunComfy. All Rights Reserved.