Skip to content

Create ROI Array

Operator Function

Create m×n ROIs according to requirements

Parameter Introduction

Input Parameters

ParameterRangeDefault ValueDescriptionIllustration
Input Image0-80The IM number for image input

Calculation Parameters

ParameterRangeDefault ValueDescriptionIllustration
Region2D Window/2D Circular Window/Box/Cylinder BoxBoxManually select an appropriate ROI region
Can bind to select existing ROI regions
ModeManual/AutomaticManualManual mode generates multiple ROI arrays in the input ROI style; Automatic mode automatically divides the input ROI into an ROI array
ManualGenerate ROI array manually
AutomaticGenerate ROI array automatically
Boundary2D Window/BoxBoxSet the boundary type in automatic mode. When the boundary is a 2D Window, the region only supports 2D Window/2D Circular Window; when the boundary is a Box, all region types are supported
ROI Type2D Window/2D Circular Window/Box/Cylinder BoxBoxSet the output ROI type
ROI Bounding Rectangle Length5.0The length of the bounding rectangle for the generated ROI array
ROI Bounding Rectangle Width5.0The width of the bounding rectangle for the generated ROI array
Row Spacing2.0The row spacing value for the generated ROI array
Column Spacing2.0The column spacing value for the generated ROI array
Number of Rows2The number of rows for the generated ROI array
Number of Columns2The number of columns for the generated ROI array

Result Display

ParameterRangeDefault ValueDescriptionIllustration
ROItrue/falsefalseIf enabled, display the created ROIs in the image

Output Parameters

NameTypeRangeDescription
Resultbooltrue/falsetrue for success
false for failure
Warningbooltrue/falsetrue indicates a warning
false indicates none
MessagestringOutput success, error, or warning messages. Empty if no error or warning
TimefloatOperator execution time, unit: ms
roiwindow2d[]/circlewindow2d[]/box[]/cylinderbox[]Output ROIs

Tip

For more detailed explanations of parameter types, please refer to Type Definitions

Exception Troubleshooting

No.Exception InformationCorresponding ParameterSolution
1The input mode is {0}, invalid modeModeSelect either manual or automatic mode
2The input boundary type in automatic mode is {0}, invalid boundary typeBoundary TypeSelect boundary type as 2D Window/Box
3Invalid 2D Window parameters inputThe difference in any x or y between the input start and end points is not 0
4Invalid Box parameters inputThe difference in any x, y, z between the input start and end points is not 0
5In automatic mode with boundary type as 2D Window, the input region type is invalidRegion TypeSelect region type as 2D Window/2D Circular Window
6In automatic mode with boundary type as Box, the input region type is invalidRegion TypeSelect region type as 2D Window/2D Circular Window/Box/Cylinder
7The input region type in manual mode is {0}, invalid region typeRegion TypeSelect region type as 2D Window/2D Circular Window/Box/Cylinder
8Spacing calculation is negative, cannot create ROI arrayIncrease the boundary dimensions or decrease the number of rows/columns
9ROI count exceeds the upper limit of 10000, cannot create ROI arrayModify relevant parameters to reduce the number of ROIs created
10The input automatic mode is {0}, invalid automatic modeModeSelect automatic mode as either based on rows/columns or based on spacing
11ROI exceeds the set boundary, cannot create ROI arrayIncrease the boundary dimensions or decrease the spacing

Example Introduction

Engineering Design

  1. Select the Load Point Cloud tool to load the required 3D point cloud image into IM0;

  2. Select the Create ROI Array tool.

Tool Usage

  1. Select the input image for operation. The image number must match the IM number where the image is located in the project.

  2. Do not enable the Use Region parameter, or enable Region and select the region type as Box, then move the box to the target position.

Usage Tips

  1. Use the ROI controller on the image window to drag or scale the box;
  2. Directly modify the start or end coordinates of the box in the calculation parameters to adjust the box position and size.
  1. Set the parameters.

  2. Check the desired display content in the Result Display section.

  3. Click Test to check if the image window and parameters meet expectations.

  4. If everything is correct, click Save, then run the operator in the run list. You can view the results in the corresponding IM.

Manual Creation

Local imageLocal image

Automatic Creation

Local imageLocal image

AI-Vision, Making 3D Measurement Easier