SplitRegionIntoBlobs
Splits a region into an array of regions corresponding to its connected components.
Applications:Segmentation of a region into individual objects when the objects do not touch each other.
Syntax
C++
C#
Python
def SplitRegionIntoBlobs( inRegion: Region, /, *, inConnectivity: RegionConnectivity = RegionConnectivity.EightDirections, inMinBlobArea: int = 1, inMaxBlobArea: int | None = None, inRemoveBoundaryBlobs: bool = False ) -> outBlobs: list[Region]
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inRegion | Region | Input region | ||
![]() |
inConnectivity | RegionConnectivity | RegionConnectivity.EightDirections | Type of connectivity used for the region foreground | |
![]() |
inMinBlobArea | int | 0 - ![]() |
1 | Minimal area of a resulting blob |
![]() |
inMaxBlobArea | int | None | 0 - ![]() |
None | Maximal area of a resulting blob |
![]() |
inRemoveBoundaryBlobs | bool | False | Flag indicating whether the blobs on border of the input region should be removed or not | |
![]() |
outBlobs | list[Region] |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.



