You are here: Start » AVL.NET » Function Reference » Region » Region Global Transforms » AVL.RemoveRegionBlobs

AVL.RemoveRegionBlobs

Splits a region into blobs, removes blobs not fulfilling the specified condition, and merges the rest back into one region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RemoveRegionBlobs
(
	AvlNet.Region inRegion,
	AvlNet.RegionConnectivity inConnectivity,
	AvlNet.RegionFeature inFeature,
	float? inMinimum,
	float? inMaximum,
	bool inRemoveBoundaryBlobs,
	AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inConnectivityAvlNet.RegionConnectivityType of connectivity used for the region foreground.
inFeatureAvlNet.RegionFeatureRegion feature value to be computed.
inMinimumfloat?<0.0f, INF>1.0fMinimal value of the considered feature. Default value: 1.0f.
inMaximumfloat?<0.0f, INF>Maximal value of the considered feature. Default value: atl::NIL.
inRemoveBoundaryBlobsboolFalseFlag indicating whether the blobs on border of the input region should be removed or not. Default value: False.
outRegionAvlNet.RegionOutput 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.

See also