Back to Adaptive Vision Library website

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

SplitRegionIntoComponents


Splits a region into an array of regions. Operates by merging blobs in accordance to the inMaxDistance parameter.

Syntax

C++
C#
 
void avl::SplitRegionIntoComponents
(
	const avl::Region& inRegion,
	atl::real inMaxDistance,
	bool inRemoveBoundaryBlobs,
	atl::Optional<avl::SplitAlgorithm::Type> inSplitAlgorithm,
	atl::Array<avl::Region>& outComponents
)

Parameters

Name Type Range Default Description
inRegion const Region& Input region
inMaxDistance real 0.0 -
inRemoveBoundaryBlobs bool False Flag indicating whether the blobs on border of the input region should be removed or not
inSplitAlgorithm Optional<SplitAlgorithm::Type> NIL Algorithm that is used to split the region, if set to Auto, the algorithm with shorter predicted time of execution will be chosen
outComponents Array<Region>&

Examples

SplitRegionIntoComponents used with inMaxDistance = 50.

Remarks

This filter is mostly used in Blob Analysis Technique please refer to our Machine Vision Guide - Blob Analysis article.

See Also