Skip to main content
Skip table of contents

Region

Area

This node calculates the area of ​​each individual region (white areas) in a binary image. It provides quantitative information about the sizes of the objects or areas within the image.

Flow

image-20251208-105740.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251017-122601.png

Return

Int32

An array containing the area of ​​each detected region. The largest area appears first in the array.

image-20251208-105619.png

Center

Center provides the coordinates of the center of gravity of each region, which can be used for further analysis or object detection and localization tasks.

In this example, Get First Element (Array) accesses the center point of the first region. Get Element At (Array) can be used to return the centers of any region.

Flow

image-20251020-073220.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251020-073247.png

Return

Point 2D

Represents the center of gravity or geometric center of each individual region. The X and Y coordinates can be retrieved using a "Break Point2D" node.

Count Black Pixels

This node counts the black pixels in an image. This metric is useful for quantifying the size or extent of areas represented as black in the image.

Flow

image-20251208-105850.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251020-075341.png

Return

Int32

Total number of black pixels in the image.

image-20251208-105807.png

Count Regions

This node allows individual regions to be identified and quantified, with each region representing a group of connected pixels that share the same pixel value.

Flow

image-20251208-105952.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251020-080203.png

Return

Int32

Total number of each region.

image-20251208-105907.png

Count White Pixels

This node counts the white pixels in an image. This metric is useful for quantifying the size or extent of areas represented as white in the image.

Flow

image-20251208-110057.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251020-080203.png

Return

Int32

Total number of white pixels in the image.

image-20251208-110012.png

Compare Regions

Analyzes two regions by merging them into a coherent, unified result. This operation is useful for tasks such as matching objects, merging adjacent regions, and evaluating segmentation accuracy.

The "To Zero Threshold" function allows you to first convert an image into a region for comparison. The result can then be inverted using "Invert Pixel Region" and finally converted back into an image using "Region to Image".

Flow

image-20251208-093729.png
image-20251208-093750.png

Parameter set

Attribute

Type

Description

Example

Region 1

Region

Binary image processed in black and white after segmentation.

image-20251118-160520.png

Region 2

Region

Binary image processed in black and white after segmentation.

image-20251118-155647.png

Return

Region

Unified representation of two segmented areas. Differences are represented by black pixels, while similarities appear in white.

image-20251119-092410.png

Concat Regions

Concatenates two binary regions. The Concat Regions method combines two binary images using a bitwise OR operation, creating a new image in which all white areas (foreground) present in one of the input images are preserved – effectively merging their contents. To achieve this, the pixels in the example shown below are first inverted.

Flow

image-20251208-093936.png
image-20251208-093911.png

Parameter set

Attribute

Type

Description

Example

Region 1

Region

Binary image processed in black and white after segmentation.

image-20251118-160520.png

Region 2

Region

Binary image processed in black and white after segmentation.

image-20251119-092339.png

Return

Region

A new region representing the result of the bitwise OR operation between the two input regions.

image-20251118-160558.png

Subtract

This node allows you to subtract one segmented region from another, which is useful for isolating differences or overlaps between the two regions (result = Region1 − Region2).

Flow

image-20251208-093936.png
image-20251208-094136.png

Parameter set

Attribute

Type

Description

Example

Region 1

Region

Binary image processed in black and white after segmentation.

image-20251118-160520.png

Region 2

Region

Binary image processed in black and white after segmentation.

image-20251119-092332.png

Return

Region

Binary image highlighting the differences between the two subtracted regions.

image-20251119-092357.png

Intersection

Compares the intersection of two regions. This operation is useful for identifying common areas or features shared by two segmented objects in an image.

Flow

image-20251208-093936.png
image-20251208-094304.png

Parameter set

Attribute

Type

Description

Example

Region 1

Region

Binary image processed in black and white after segmentation.

image-20251119-103755.png

Region 2

Region

Binary image processed in black and white after segmentation.

image-20251119-103743.png

Return

Region

Binary image representing the overlapping areas between two regions.

image-20251119-103727.png

Invert Pixel Region

This node reverses or inverts the pixels of a specified region, typically from white to black and vice versa. This is useful for highlighting specific areas of interest or creating negative versions of images for particular applications.

Flow

image-20251020-092750.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251020-092817.png

Return

Region

Inverted binary image.

image-20251020-093017.png

Region To Image

Converts a region (binary image) into a grayscale image. Required to display result images or regions as images.

Flow

image-20251020-093226.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251020-092817.png

Return

Image

The image is now saved in a more general image format that can be easily viewed, saved, or further processed.

Select Region

Select a range of regions specified by one of the following characteristics: area, index, height, or width.

Flow

image-20251119-100915.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251119-100637.png

Feature

Feature

Specifies which feature of the region should be filtered by: Area (total number of pixels), Index (index of each region based on the distance to the image origin in the upper left corner), Height (vertical extent) or Width (horizontal extent).

In the example: area

Min

Int32

The minimum permissible value for the selected characteristic. The value must be at least 0.

In the example: 0

Max

Int32

The maximum permissible value for the selected characteristic.

In the example: 5000

Return

Image

Filtered binary image containing only the parts of the original region that meet the specified criteria.

image-20251119-100943.png

Select Largest Region

This node identifies the largest contiguous region in a binary image. This operation is useful for extracting dominant objects or areas of interest based on their size in the image.

Flow

image-20251119-101148.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251119-100637.png

Largest Region

Region

Largest region.

image-20251119-101229.png

Area

Int32

Area of ​​the largest region.

image-20251119-101251.png

Smallest Circle

Calculates the smallest circle that can enclose the entire region in a binary image. This operation is useful for obtaining a compact geometric representation of the region, gaining insights into its spatial extent, and facilitating further analysis or measurement.

Flow

image-20251020-102628.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251119-104238.png

Return

Circle

Smallest district within the region.

image-20251119-104257.png

Smallest Rectangle

Calculates the smallest rectangle that can enclose the entire region in a binary image. This operation is useful for obtaining a compact geometric representation of the region, gaining insights into its spatial extent, and facilitating further analysis or measurement.

Flow

image-20251119-111845.png

Parameter set

Attribute

Type

Description

Example

Region

Region

Binary image processed in black and white after segmentation.

image-20251119-111731.png

Return

Rectangle

Smallest rectangle within the region.

image-20251119-111749.png

Region Size

This node returns the width and height of a region based on your input.

Flow

image-20251020-103217.png

Parameter set

Attribute

Type

Description

Region

Region

Binary image processed in black and white after segmentation.

Width

Int32

Width of the region.

Height

Int32

Height of the region.

Sort Regions

This node allows you to sort an array of regions based on a specific characteristic. The available options are X, Y, area, width, and height.

  • X and Y are sorted from smallest to largest.

  • Area, width, and height are sorted from largest to smallest.

Flow

Screenshot 2025-12-10 123949.png

Parameter set

Attribute

Type

Description

Region

Region

Binary image processed in black and white after segmentation.

Sort By

SortFeature

Sorting algorithm.

Return

Region

Sorted region array based on the selected criteria.

Sort Contours

Sorts an array of contours by a specific attribute (X, Y, length, or area). It is also possible to limit the number of returned contours.

After sorting the array, the desired polygon can be returned using GetArray functions (GetFirstElement, GetLastElement, or GetElementAt, etc.). The order is sorted in descending order from largest to smallest area.

Flow

image-20251119-144645.png

Parameter set

Attribute

Type

Description

Example

Contours

Polyline

Input array of polylines representing the contours.

Sort By

SortCriterion

The criterion by which to sort: X, Y, length or area.

In the example: area

Return

Polyline

Sorted array of contours (polylines).

Sort Edges

This node allows you to sort an array of edges based on a specific feature.

Flow

Screenshot 2025-12-02 154215.png

Parameter set

Attribute

Type

Description

Edges

Segment 2D

The array of detected edge segments.

Scores

Single

The corresponding score for each edge.

Mode

SortEdgesMode

Determines the sorting method applied to the edges. You can choose from the following options:

  • Best Score – sorted in descending order, prioritizing longer and stronger edges

  • First to Last – sorted in the original scan order

  • Last to First – sorted in reverse order

Limit Results

Int32

Optional limit on the number of results. Specifying 0 or a negative value returns all results.

Return

Segment 2D

Returns the edges sorted.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.