Back to Aurora Vision Library website

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

RemoveRegionBlobs


Header: AVL.h
Namespace: avl
Module: FoundationBasic

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

Syntax

C++
C#
 
void avl::RemoveRegionBlobs
(
	const avl::Region& inRegion,
	avl::RegionConnectivity::Type inConnectivity,
	avl::RegionFeature::Type inFeature,
	atl::Optional<float> inMinimum,
	atl::Optional<float> inMaximum,
	bool inRemoveBoundaryBlobs,
	avl::Region& outRegion
)

Parameters

Name Type Range Default Description
Input value inRegion const Region& Input region
Input value inConnectivity RegionConnectivity::Type Type of connectivity used for the region foreground
Input value inFeature RegionFeature::Type Region feature value to be computed
Input value inMinimum Optional<float> 0.0 - 1.0f Minimal value of the considered feature
Input value inMaximum Optional<float> 0.0 - NIL 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

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

  • ClassifyRegions – Splits an array of regions according to the selected feature and range.
  • SplitRegionIntoBlobs – Splits a region into an array of regions corresponding to its connected components.
  • RegionUnion_OfArray – Computes a region containing all the pixels that any of the input regions contains.