Slice Image
This function block allows you to slice an input image into smaller sections based on specified horizontal and vertical proportions. This is useful for analyzing parts of an image separately or for processing images in more manageable segments.
π₯ Inputs
Image Any
The main image that you want to slice.
Horizontal Percentage
The number of horizontal slices to create from the image.
Vertical Percentage
The number of vertical slices to create from the image.
π€ Outputs
Image Any
The reconstructed output image assembled from the sliced pieces.
Sliced Images
This output consists of the individual image segments obtained from the slicing process.
Sliced Coordinates
The coordinates corresponding to where each slice is located in the original image.
πΉοΈ Controls
Horizontal Percentage
A numeric input specifying how many segments the image should be divided into horizontally. Default is 1
.
Vertical Percentage
A numeric input specifying how many segments the image should be divided into vertically. Default is 1
.
π¨ Features
Flexible Slicing
You can define the number of horizontal and vertical slices independently to get the desired segmentations.
Structured Output
The block returns both the sliced image segments and their coordinates, making it easy to link with other processing functions.
π Usage Instructions
Input an Image: Connect the image you want to slice to the
Image Any
input.Set Slices: Determine how many horizontal and vertical segments you want from the image by specifying values in the
Horizontal Percentage
andVertical Percentage
inputs.Evaluate the Block: Execute the function block to perform the slicing. The output will include the reconstructed main image and the individual sliced segments.
π Evaluation
When executed, this function block will process the input image according to the specified slice parameters, returning the sliced images and their coordinates for further processing.
π‘ Tips and Tricks
π οΈ Troubleshooting
Last updated