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

AVS.SplitRegionIntoExactlyNComponents Method

Splits a region into a fixed-size array of regions.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void SplitRegionIntoExactlyNComponents
(
	AvlNet.Region inRegion,
	int inComponentCount,
	int? inMaxDistance,
	float inDistanceBalance,
	float? inMaxJointDiameter,
	int? inMaxJointWidth,
	int? inMaxJointHeight,
	bool inRemoveBoundaryBlobs,
	INullable<SafeList<AvlNet.Region>> outComponents
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inComponentCountint<1, INF>
inMaxDistanceint?<0, INF>5Default value: 5.
inDistanceBalancefloat<-1.0f, 1.0f>Defines how much important the distance between regions in x coordinate is according to distance in y coordinate.
inMaxJointDiameterfloat?<0.0f, INF>
inMaxJointWidthint?<0, INF>
inMaxJointHeightint?<0, INF>
inRemoveBoundaryBlobsboolFalseFlag indicating whether the blobs on border of the input region should be removed or not. Default value: False.
outComponentsAvlNet.INullable<AvlNet.SafeList<AvlNet.Region>> This parameter cannot be null.

Function Overrides

See also