Comment on page
Slice Image
The
Slice Image
node in AugeLab Studio is used to slice an input image into multiple sub-images based on the specified slice numbers.The
Slice Image
node takes an input image and slices it into smaller sub-images based on the specified number of horizontal and vertical slices. You can adjust the slice numbers in the node's UI to control the slicing process. The node outputs the following:- Output Image: The original input image.
- Sliced Images: The sub-images obtained after slicing the input image.
- Sliced Coordinates: The coordinates of the sub-images within the original image.
- Node Title: Slice Image
- Node ID: OP_NODE_SLICE_IMAGE
The
Slice Image
node has the following input sockets:- 1.Input Image: The input image to be sliced.
- 2.Horizontal Slice Amount (optional): The number of horizontal slices to be created. If not provided, the default value is 1.
- 3.Vertical Slice Amount (optional): The number of vertical slices to be created. If not provided, the default value is 1.
The
Slice Image
node has the following output sockets:- 1.Output Image: The original input image.
- 2.Sliced Images: The sub-images obtained after slicing the input image. These sub-images represent the individual slices.
- 3.Sliced Coordinates: The coordinates of the sub-images within the original image. The coordinates provide the position of each sub-image within the original image.
The
Slice Image
node does not provide any UI controls.- 1.Drag and drop the
Slice Image
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input image to the Input Image input socket of the
Slice Image
node. - 3.(Optional) Adjust the Horizontal Slice Amount and Vertical Slice Amount inputs to specify the desired number of slices in each dimension.
- 4.Run the pipeline.
- 5.The
Slice Image
node will slice the input image into smaller sub-images based on the specified slice numbers. - 6.The original input image will be output through the Output Image output socket.
- 7.The sub-images obtained after slicing will be output through the Sliced Images output socket.
- 8.The coordinates of the sub-images within the original image will be output through the Sliced Coordinates output socket.
- 9.Use the output images and coordinates for further analysis or display them in the console.
- The
Slice Image
node requires an input image to perform the slicing operation. - The number of horizontal and vertical slices can be adjusted using the Horizontal Slice Amount and Vertical Slice Amount inputs, respectively.
- The default value for the slice numbers is 1, which means no slicing will occur in that dimension.
- The
Slice Image
node uses theimage_slicer.slice_images()
function from theimage_slicer
module to perform the slicing operation. - The output sub-images represent the individual slices obtained after the slicing process.
- The coordinates of the sub-images provide the position of each slice within the original image.
- The dimensions of the sub-images may vary depending on the number of slices and the size of the input image.
That concludes the documentation for the
Slice Image
node in AugeLab Studio. This node allows you to slice an input image into multiple sub-images based on the specified slice numbers. The output sub-images and coordinates can be used for further analysis or display.