You are here: Start » FIL.NET » Function Reference » Region » Region Global Transforms » FIL.RemoveRegionBlobs
Splits a region into blobs, removes blobs not fulfilling the specified condition, and merges the rest back into one region.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void RemoveRegionBlobs ( FilNet.Region inRegion, FilNet.RegionConnectivity inConnectivity, FilNet.RegionFeature inFeature, float? inMinimum, float? inMaximum, bool inRemoveBoundaryBlobs, FilNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegion | FilNet.Region | Input region. | ||
![]() | inConnectivity | FilNet.RegionConnectivity | Type of connectivity used for the region foreground. | ||
![]() | inFeature | FilNet.RegionFeature | Region feature value to be computed. | ||
![]() | inMinimum | float? | <0.0f, INF> | 1.0f | Minimal value of the considered feature. Default value: 1.0f. |
![]() | inMaximum | float? | <0.0f, INF> | Maximal value of the considered feature. Default value: ftl::NIL. | |
![]() | inRemoveBoundaryBlobs | bool | False | Flag indicating whether the blobs on border of the input region should be removed or not. Default value: False. | |
![]() | outRegion | FilNet.Region | Output region. |
Description
This filter removes regions, which don't fulfill specific conditions given in inMinimum and inMaximum inputs. Both inputs are optional, which means that you don't have to set fixed limitations of your parameter's range. Classification can be based on different region features, for example area, convexity, mass center.
Examples
![]() Original image |
|
![]() Too big elements have been removed. |
![]() Too small elements have been removed. |