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, int? inMaxDistance, float inDistanceBalance, float? inMaxJointDiameter, int? inMaxJointWidth, int? inMaxJointHeight, int inMinComponentArea, int? inMaxComponentArea, bool inRemoveBoundaryBlobs, IList<AvlNet.Region> outComponents )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | AvlNet.Region | Input region. | |||
inMaxDistance | int? | <0, INF> | 5 | Default value: 5. | |
inDistanceBalance | float | <-1.0f, 1.0f> | Defines how much important the distance between regions in x coordinate is according to distance in y coordinate. | ||
inMaxJointDiameter | float? | <0.0f, INF> | |||
inMaxJointWidth | int? | <0, INF> | |||
inMaxJointHeight | int? | <0, INF> | |||
inMinComponentArea | int | <0, INF> | 1 | Minimal area of a resulting component. Default value: 1. | |
inMaxComponentArea | int? | <0, INF> | Maximal area of a resulting component. Default value: atl::NIL. | ||
inRemoveBoundaryBlobs | bool | False | Flag indicating whether the blobs on border of the input region should be removed or not. Default value: False. | ||
outComponents | System.Collections.Generic.IList<AvlNet.Region> |