You are here: Start » AVL.NET » AVL.SplitRegionIntoExactlyNComponents(AvlNet.Region, int, bool, AvlNet.SplitAlgorithm?, AvlNet.Region[])

AVL.SplitRegionIntoExactlyNComponents(AvlNet.Region, int, bool, AvlNet.SplitAlgorithm?, AvlNet.Region[])

Splits a region into a fixed-size array of regions. Minimizes distances between blobs belonging to a single component.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void SplitRegionIntoExactlyNComponents(
	AvlNet.Region inRegion,
	int inComponentCount,
	bool inRemoveBoundaryBlobs,
	AvlNet.SplitAlgorithm? inSplitAlgorithm,
	out AvlNet.Region[] outComponents
)

Parameters

inRegion
Type: AvlNet.Region
Input region
inComponentCount
Type: System.Int32
inRemoveBoundaryBlobs
Type: System.Boolean
Flag indicating whether the blobs on border of the input region should be removed or not
inSplitAlgorithm
Type: System.Nullable<AvlNet.SplitAlgorithm>
Algorithm that is used to split the region, if set to Auto, the algorithm with shorter predicted time of execution will be chosen, or null.
outComponents
Type: AvlNet.Region

Examples

SplitRegionIntoExactlyNComponents used with inComponentCount = 4.

Remarks

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

See also