Visit ComfyUI Online for ready-to-use ComfyUI environment
Seamlessly blend source image into target image within specified bounds using mask for precise control and smooth transition.
The Bounded Image Blend with Mask node is designed to seamlessly blend a source image into a target image within specified bounds, using a mask to control the blending process. This node is particularly useful for AI artists who want to integrate elements from one image into another with precision and control. By defining the target bounds and applying a mask, you can ensure that the blending occurs only within the desired area, creating a smooth transition between the images. The node also supports feathering, which applies a Gaussian blur to the mask edges, resulting in a more natural and gradual blend. This functionality is ideal for tasks such as compositing, where you need to merge different visual elements while maintaining a cohesive and aesthetically pleasing result.
The target parameter represents the main image onto which the source image will be blended. This image serves as the canvas for the blending operation.
The target_mask parameter is an image that defines the areas of the target image where the blending will occur. The mask controls the transparency and blending intensity, with white areas representing full blending and black areas representing no blending.
The target_bounds parameter specifies the rectangular area within the target image where the blending will take place. This is defined by the coordinates of the top-left and bottom-right corners of the rectangle.
The source parameter is the image that will be blended into the target image. This image will be resized and positioned according to the target bounds and mask.
The blend_factor parameter controls the intensity of the blending between the source and target images. It is a float value ranging from 0.0 to 1.0, where 0.0 means no blending and 1.0 means full blending. The default value is 0.5.
The feathering parameter applies a Gaussian blur to the edges of the mask, creating a smooth transition between the blended and non-blended areas. It is a float value that determines the radius of the blur. A higher value results in a more gradual blend.
The output is the resulting image after the blending operation. This image combines the source and target images within the specified bounds, using the mask and blend factor to control the blending intensity and feathering to smooth the edges.
© Copyright 2024 RunComfy. All Rights Reserved.