RemoveRegionBlobs
Splits a region into blobs, removes blobs not fulfilling the specified condition, and merges the rest back into one region.
Syntax
C++
C#
Python
def RemoveRegionBlobs( inRegion: Region, outRegion: Region, /, *, inConnectivity: RegionConnectivity = RegionConnectivity.EightDirections, inFeature: RegionFeature = RegionFeature.Area, inMinimum: float | None = 1.0, inMaximum: float | None = None, inRemoveBoundaryBlobs: bool = False ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inRegion | Region | Input region | ||
![]() |
inConnectivity | RegionConnectivity | RegionConnectivity.EightDirections | Type of connectivity used for the region foreground | |
![]() |
inFeature | RegionFeature | RegionFeature.Area | Region feature value to be computed | |
![]() |
inMinimum | float | None | 0.0 - ![]() |
1.0 | Minimal value of the considered feature |
![]() |
inMaximum | float | None | 0.0 - ![]() |
None | Maximal value of the considered feature |
![]() |
inRemoveBoundaryBlobs | bool | False | Flag indicating whether the blobs on border of the input region should be removed or not | |
![]() |
outRegion | Region | Output region |



