Visit ComfyUI Online for ready-to-use ComfyUI environment
Integrates cropped images back using bounding box for AI artists, ensuring accurate restoration with blending options.
The easy imageUncropFromBBOX
node is designed to seamlessly integrate cropped images back into their original context using bounding box coordinates. This node is particularly useful for AI artists who need to restore or manipulate specific regions of an image that have been previously cropped. By leveraging bounding box data, the node ensures that the cropped image is accurately placed back into its original position, maintaining the visual coherence of the artwork. Additionally, the node offers options for border blending and mask usage, providing flexibility in how the uncropped image is rendered. This functionality is essential for tasks that involve detailed image editing, restoration, or compositing, where maintaining the integrity of the original image is crucial.
This parameter expects the original image from which a region was cropped. It is used as the base onto which the cropped image will be placed. The original image should be in the same format and dimensions as it was before cropping.
This parameter takes the cropped image that needs to be placed back into the original image. The cropped image should correspond to the region defined by the bounding box.
The bounding box parameter defines the coordinates and dimensions of the cropped region within the original image. It ensures that the cropped image is accurately positioned when uncropped. The bounding box is typically provided as a tuple of four values: (x, y, width, height).
This parameter controls the blending of the border between the original and cropped images. It is a float value ranging from 0.0 to 1.0, with a default value of 0.25. A higher value results in smoother blending, while a lower value maintains a sharper edge.
This boolean parameter determines whether a square mask should be used during the uncropping process. The default value is True. When enabled, the node uses a square mask to blend the cropped image into the original, which can help in maintaining uniformity.
This optional parameter allows you to provide a custom mask for the uncropping process. The mask can be used to define specific areas of the cropped image that should be blended with the original image. If not provided, the node will use the default mask settings.
The output is the final image with the cropped region accurately placed back into its original position. This image maintains the visual integrity of the original image while incorporating the changes made to the cropped region.
original_image
and crop_image
match to avoid inconsistencies during the uncropping process.border_blending
parameter to achieve the desired level of smoothness at the edges of the uncropped region. A value closer to 1.0 will result in a more seamless blend.optional_mask
parameter to fine-tune the blending process, especially when dealing with complex or irregularly shaped cropped regions.original_image
and crop_image
parameters do not match.original_image
and crop_image
contain the same number of images before running the node.original_image
and crop_image
.original_image
and crop_image
parameters to resolve this issue.original_image
.original_image
and crop_image
. Excess bounding boxes will be ignored.© Copyright 2024 RunComfy. All Rights Reserved.