2D Blob
Operator Function
Find line segments in the ROI of the input image
Parameter Introduction
Input Parameters

| Parameter | Range | Default Value | Description | Illustration |
|---|---|---|---|---|
| Input Image | 0-8 | 0 | IM number for image input | ![]() |
Calculation Parameters

| Parameter | Range | Default Value | Description | Illustration |
|---|---|---|---|---|
| Use Region Parameters | true/false | false | If enabled, use region as input; if disabled, use input image as input | |
| Region | 2D Window | 2D Window | Set the range of the search area | ![]() |
| Minimum Blob Area | 0-10000000 | 1000.000 | Minimum blob area to find | |
| Maximum Blob Area | 0-10000000 | 10000.000 | Maximum blob area to find | |
| Search Quantity | 1-50 | 10 | Number of blobs to find | |
| Polarity | Brighter than background/Darker than background/Both | Both | Brighter than background: Find high brightness blobs Darker than background: Find low brightness blobs Both: Find both high and low brightness blobs | ![]() |
| Binarization Threshold | 1-255 | 90.000 | Threshold for image binarization | ![]() |
| Fill Holes | true/false | false | Minimum hole area: Fill holes smaller than this value | ![]() |
| Bounding Rectangle Type | Axis-aligned rectangle | Axis-aligned rectangle | Axis-aligned rectangle: Select axis-aligned bounding rectangle | |
| Area Sorting | Descending/Ascending | Descending | Descending: Sort blob areas in descending order Ascending: Sort blob areas in ascending order |
Result Display

| Parameter | Range | Default Value | Description | Illustration |
|---|---|---|---|---|
| Index | true/false | false | If enabled, display numbers and information on IM image | |
| Window | true/false | false | If enabled, display bounding rectangles of found blob regions on IM image |
Output Parameters

| Name | Type | Range | Description |
|---|---|---|---|
| Result | bool | true/false | true for success false for failure |
| Warning | bool | true/false | true indicates a warning false indicates no warning |
| Message | string | Output success, error, or warning messages. Empty if no error or warning. | |
| Time | float | Operator execution time, unit: ms | |
| area_array | float[] | Area of found blobs | |
| window_array | group | Bounding rectangle information of found blobs |
Exception Troubleshooting
| No. | Exception Information | Corresponding Parameter | Solution |
|---|---|---|---|
| 1 | Input value is {0}, invalid region type | Region type | Only window2d supported |
| 2 | No suitable inflection points found | 1. Check area range 2. Check polarity | |
| 3 | Input image is empty | Check if input image is empty |
Example Introduction
Engineering Design
Select the
Load Imagetool to load the required 2D image.Select the
2D Blobtool.
Tool Usage
Select the input image for the operation. The image number must match the IM number where the image is located in the project.
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; :::
Set the parameters.
Check the content you want to display in the result display section.
Click
Testto check if the image window and parameters meet expectations.If there are no issues, click
Save. Run the operator in the run list, and then view the running results in the corresponding IM.





