Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust image boundaries with specified insets for precise region focus in image processing tasks.
The Inset Image Bounds node is designed to adjust the boundaries of an image by applying specified insets to its edges. This node is particularly useful for refining the area of interest within an image by trimming or expanding the boundaries from the left, right, top, and bottom. By modifying these bounds, you can focus on specific regions of the image, which can be beneficial for various image processing tasks such as cropping, zooming, or preparing images for further analysis. The primary goal of this node is to provide a flexible and precise way to manipulate image boundaries, ensuring that the resulting bounds are valid and within the original image dimensions.
This parameter represents the initial boundaries of the image that you want to adjust. It is a tuple containing the minimum and maximum row and column indices that define the current bounds of the image. The function of this parameter is to provide the starting point for the insetting process.
This parameter specifies the number of pixels to inset from the left edge of the image. The default value is 64, with a minimum value of 0 and a maximum value of 0xffffffffffffffff. Adjusting this parameter will move the left boundary of the image inward by the specified number of pixels, effectively trimming the left side of the image.
This parameter specifies the number of pixels to inset from the right edge of the image. The default value is 64, with a minimum value of 0 and a maximum value of 0xffffffffffffffff. Adjusting this parameter will move the right boundary of the image inward by the specified number of pixels, effectively trimming the right side of the image.
This parameter specifies the number of pixels to inset from the top edge of the image. The default value is 64, with a minimum value of 0 and a maximum value of 0xffffffffffffffff. Adjusting this parameter will move the top boundary of the image downward by the specified number of pixels, effectively trimming the top side of the image.
This parameter specifies the number of pixels to inset from the bottom edge of the image. The default value is 64, with a minimum value of 0 and a maximum value of 0xffffffffffffffff. Adjusting this parameter will move the bottom boundary of the image upward by the specified number of pixels, effectively trimming the bottom side of the image.
This output parameter returns the new boundaries of the image after applying the specified insets. It is a tuple containing the updated minimum and maximum row and column indices that define the new bounds of the image. This output is crucial for understanding the adjusted area of interest within the image and can be used for further image processing tasks.
© Copyright 2024 RunComfy. All Rights Reserved.