Visit ComfyUI Online for ready-to-use ComfyUI environment
Divide image into grid for segmentation, object detection, and manipulation with aspect ratio preservation.
The easy imageSplitGrid
node is designed to divide an image into a grid of smaller sub-images based on specified row and column parameters. This node is particularly useful for tasks that require processing or analyzing different sections of an image independently, such as in image segmentation, object detection, or creating image tiles for further manipulation. By splitting an image into a grid, you can focus on smaller, more manageable parts of the image, which can enhance processing efficiency and accuracy. This node ensures that each sub-image retains the original image's aspect ratio and resolution, making it a powerful tool for detailed image analysis and manipulation.
This parameter expects an image tensor that you want to split into a grid. The image should be in a format that the node can process, typically a 4D tensor with dimensions representing batch size, height, width, and channels. The input image serves as the source from which the grid of sub-images will be generated.
This parameter specifies the number of rows into which the image will be divided. It determines the vertical segmentation of the image. The default value is 1, with a minimum value of 1 and a maximum value of 10. Adjusting this parameter allows you to control the number of horizontal slices in the grid.
This parameter specifies the number of columns into which the image will be divided. It determines the horizontal segmentation of the image. The default value is 1, with a minimum value of 1 and a maximum value of 10. Adjusting this parameter allows you to control the number of vertical slices in the grid.
This output parameter returns a tensor containing the sub-images generated from the original image. Each sub-image corresponds to a cell in the grid defined by the row and column parameters. The output tensor concatenates these sub-images along the batch dimension, allowing for easy further processing or analysis.
© Copyright 2024 RunComfy. All Rights Reserved.