You are here: Start » AVL.NET » AVS.SplitRegionIntoComponents Method

AVS.SplitRegionIntoComponents Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void SplitRegionIntoComponents
(
	AvlNet.Region inRegion,
	float inDistanceBalance,
	int inMinComponentArea,
	bool inRemoveBoundaryBlobs,
	IList<AvlNet.Region> outComponents
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inDistanceBalancefloat<-1.0f, 1.0f>Defines how much important the distance between regions in x coordinate is according to distance in y coordinate.
inMinComponentAreaint<0, INF>1Minimal area of a resulting component. Default value: 1.
inRemoveBoundaryBlobsboolFalseFlag indicating whether the blobs on border of the input region should be removed or not. Default value: False.
outComponentsSystem.Collections.Generic.IList<AvlNet.Region>

Function Overrides

See also