Skip to content

Create ROI

Operator Function

Create ROI arrays according to requirements, can create 1-100 ROIs. Operation method is as follows:

  1. Select the required ROI type to create
  2. Adjust the position and size of ROI with sequence number 0
  3. Use ctrl+c to copy, ctrl+v to paste, delete to remove, esc to exit copy/paste mode
    Note: Maximum 100 ROIs can be created (sequence numbers 0-99), minimum 1 ROI (sequence number 0)

Parameter Introduction

Input Parameters

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

Calculation Parameters

ParameterRangeDefault ValueDescriptionIllustration
ModeRecipe/RegionRegionSelect ROI creation mode: recipe input or manual creation via region
Recipe FileRecipe file path
Region Type2D Window Array/2D Circular Window Array/2D Polygon Window/Box Array/Cylinder Box Array/Rotated Box ArrayBox Array
Type2D Window Array/2D Circular Window Array/2D Polygon Window/Box Array/Cylinder Box Array/Rotated Box ArrayBox ArraySelect required ROI type
Sequence NumberAll created ROIs0Each copy automatically increments sequence number by 1 in order; deleting an ROI decrements all subsequent ROI sequence numbers by 1 (all ROIs maintain order 0-99), maximum value 99, minimum value 0

Result Display

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

Output Parameters

NameTypeRangeDescription
Resultbooltrue/falsetrue for success
false for failure
Warningbooltrue/falsetrue indicates there is a warning
false indicates there is none
MessagestringOutputs success, error, or warning information; if there is no error or warning, it is empty
TimefloatOperator execution time, unit: ms
ROIwindow2d[]/circlewindow2d[]/polygon2d/
box[]/cylinderbox[]/orientedbox[]
Output ROI

Tip

For more detailed explanations of parameter types, please refer to... [add link to parameter type introduction]...

Exception Troubleshooting

No.Exception InformationCorresponding ParameterSolution
1Input ROI type is {0}, invalid ROI typeROI TypeSelect region type as one of: 2D Window Array/2D Circular Window Array/2D Polygon Window/Box Array/Cylinder Box Array/Rotated Box Array
2Input 2D window parameter for {0}th ROI is invalidSequence NumberEnsure difference between start and end points in any x or y coordinate is not 0
3Input box parameter for {0}th ROI is invalidSequence NumberEnsure difference between start and end points in any x, y, z coordinate is not 0
4Input polygon vertex count less than 3, cannot form polygonAdd 2D polygon window vertices so vertex count is at least three
5File "{0}" does not exist or cannot be accessedFile NameInput valid recipe path
6File "{0}" failed to loadFile NameInput valid path and must be a json file
7File does not contain key {0}.Key NameCheck if recipe file contains this key
8No "{1}" in {0}th arrayGroup Number, Parameter NameCheck if this array is missing this parameter

Example Introduction

Engineering Design

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

  2. Select the Create ROI 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. Select the region type as the required ROI type, move the ROI to the position to be measured, and perform operations such as copying and adjusting.

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. Check the content you want to display in the result display section.

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

  3. If there are no issues, click Save, then run the operator in the run list to view the results in the corresponding IM.

2D Window Array

Local ImageLocal Image

2D Circular Window Array

Local ImageLocal Image

Box Array

Local ImageLocal Image

Cylinder Box Array

Local ImageLocal Image

AI-Vision, Making 3D Measurement Easier