Skip to content

2D Blob

Operator Function

Find line segments in the ROI of the input image

Parameter Introduction

Input Parameters

ParameterRangeDefault ValueDescriptionIllustration
Input Image0-80IM number for image input

Calculation Parameters

ParameterRangeDefault ValueDescriptionIllustration
Use Region Parameterstrue/falsefalseIf enabled, use region as input; if disabled, use input image as input
Region2D Window2D WindowSet the range of the search area
Minimum Blob Area0-100000001000.000Minimum blob area to find
Maximum Blob Area0-1000000010000.000Maximum blob area to find
Search Quantity1-5010Number of blobs to find
PolarityBrighter than background/Darker than background/BothBothBrighter than background: Find high brightness blobs
Darker than background: Find low brightness blobs
Both: Find both high and low brightness blobs
Binarization Threshold1-25590.000Threshold for image binarization
Fill Holestrue/falsefalseMinimum hole area: Fill holes smaller than this value
Bounding Rectangle TypeAxis-aligned rectangleAxis-aligned rectangleAxis-aligned rectangle: Select axis-aligned bounding rectangle
Area SortingDescending/AscendingDescendingDescending: Sort blob areas in descending order
Ascending: Sort blob areas in ascending order

Result Display

ParameterRangeDefault ValueDescriptionIllustration
Indextrue/falsefalseIf enabled, display numbers and information on IM image
Windowtrue/falsefalseIf enabled, display bounding rectangles of found blob regions on IM image

Output Parameters

NameTypeRangeDescription
Resultbooltrue/falsetrue for success
false for failure
Warningbooltrue/falsetrue indicates a warning
false indicates no warning
MessagestringOutput success, error, or warning messages. Empty if no error or warning.
TimefloatOperator execution time, unit: ms
area_arrayfloat[]Area of found blobs
window_arraygroupBounding rectangle information of found blobs

Exception Troubleshooting

No.Exception InformationCorresponding ParameterSolution
1Input value is {0}, invalid region typeRegion typeOnly window2d supported
2No suitable inflection points found1. Check area range
2. Check polarity
3Input image is emptyCheck if input image is empty

Example Introduction

Engineering Design

  1. Select the Load Image tool to load the required 2D image.

  2. Select the 2D Blob tool.

Tool Usage

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

  2. Move the window to the position to be measured, enclosing the image to be tested.

::: Warning Tips 1. Use the ROI controller on the image window to drag or scale the window; 2. Directly modify the window's start or end point coordinates in the calculation parameters to adjust the window position and size; :::

  1. Set the parameters.

  2. Check the content you want to display in the result display section.

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

  4. If there are no issues, click Save. Run the operator in the run list, and then view the running results in the corresponding IM.

Local Image

AI-Vision, Making 3D Measurement Easier