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
Input value inRegion Region Input region
Input value inConnectivity RegionConnectivity RegionConnectivity.EightDirections Type of connectivity used for the region foreground
Input value inFeature RegionFeature RegionFeature.Area Region feature value to be computed
Input value inMinimum float | None 0.0 - 1.0 Minimal value of the considered feature
Input value inMaximum float | None 0.0 - None Maximal value of the considered feature
Input value inRemoveBoundaryBlobs bool False Flag indicating whether the blobs on border of the input region should be removed or not
Output value outRegion Region Output region