Visit ComfyUI Online for ready-to-use ComfyUI environment
Swap pixel values between images using specified patterns for dynamic color channel rearrangement and manipulation, enabling diverse visual transformations for AI artists.
The PIXEL SWAP (JOV) π node is designed to swap pixel values between two images based on specified swizzle patterns and values. This node allows you to dynamically rearrange and manipulate the color channels of two input images, providing a high degree of flexibility in image processing and creative effects. By specifying which channels to swap and the values to use, you can achieve a variety of visual transformations, making this node a powerful tool for AI artists looking to experiment with image composition and color manipulation.
This parameter accepts the first input image. It is used as one of the sources for the pixel swapping operation. The image should be in a format that supports multiple color channels, such as BGRA. If not provided, a solid channel image will be used by default.
This parameter accepts the second input image. It is used as the other source for the pixel swapping operation. Similar to PIXEL_A, the image should support multiple color channels. If not provided, a solid channel image will be used by default.
This parameter specifies the swizzle pattern for the red channel. It determines which channel from the input images will be used for the red channel in the output image. Options include RED_A
, GREEN_A
, BLUE_A
, ALPHA_A
, RED_B
, GREEN_B
, BLUE_B
, ALPHA_B
, and CONSTANT
. The default value is RED_A
.
This parameter sets the constant value for the red channel if SWAP_R
is set to CONSTANT
. It ranges from 0 to 255, with a default value of 0.
This parameter specifies the swizzle pattern for the green channel. It determines which channel from the input images will be used for the green channel in the output image. Options include RED_A
, GREEN_A
, BLUE_A
, ALPHA_A
, RED_B
, GREEN_B
, BLUE_B
, ALPHA_B
, and CONSTANT
. The default value is GREEN_A
.
This parameter sets the constant value for the green channel if SWAP_G
is set to CONSTANT
. It ranges from 0 to 255, with a default value of 0.
This parameter specifies the swizzle pattern for the blue channel. It determines which channel from the input images will be used for the blue channel in the output image. Options include RED_A
, GREEN_A
, BLUE_A
, ALPHA_A
, RED_B
, GREEN_B
, BLUE_B
, ALPHA_B
, and CONSTANT
. The default value is BLUE_A
.
This parameter sets the constant value for the blue channel if SWAP_B
is set to CONSTANT
. It ranges from 0 to 255, with a default value of 0.
This parameter specifies the swizzle pattern for the alpha channel. It determines which channel from the input images will be used for the alpha channel in the output image. Options include RED_A
, GREEN_A
, BLUE_A
, ALPHA_A
, RED_B
, GREEN_B
, BLUE_B
, ALPHA_B
, and CONSTANT
. The default value is ALPHA_A
.
This parameter sets the constant value for the alpha channel if SWAP_A
is set to CONSTANT
. It ranges from 0 to 255, with a default value of 0.
The output of the PIXEL SWAP (JOV) π node is a single image that combines the specified channels from the two input images according to the swizzle patterns and values provided. This image can be used for further processing or as a final output, depending on your creative needs.
Β© Copyright 2024 RunComfy. All Rights Reserved.