You are here: Start » AVL.NET » AVL.ClassifyRegions Method
AVL.ClassifyRegions Method
Splits an array of regions according to the selected feature and range.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void ClassifyRegions( AvlNet.Region[] inRegions, AvlNet.RegionFeature inFeature, out AvlNet.Region[] outAccepted, out AvlNet.Region[] outRejected, out AvlNet.Region[] outBelow, out AvlNet.Region[] outAbove, out float[] outValues )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegions | AvlNet.Region | Input regions. | |||
inFeature | AvlNet.RegionFeature | Region feature value to be computed. | |||
outAccepted | AvlNet.Region | Regions with feature values matching the range | |||
outRejected | AvlNet.Region | Regions with feature values outside the range | |||
outBelow | AvlNet.Region | Regions with feature values lower than inMinimum | |||
outAbove | AvlNet.Region | Regions with feature values higher than inMaximum | |||
outValues | float | Computed feature values |
Description
The filter accepts an array of regions and splits it into output arrays, depending on how each of the computed feature values fits the (inMinimum, inMaximum) range.
- Regions corresponding to feature values lower than inMinimum are passed onto outBelow and outRejected.
- Regions corresponding to feature values that fit closed range (inMinimum, inMaximum) are passed onto outAccepted.
- Regions corresponding to feature values higher than inMaximum are passed onto outAbove and outRejected.
In the special case of inMinimum being greater than inMaximum, first matching condition is applied, which means that objects corresponding to values higher than inMaximum and lower than inMinimum are passed onto outBelow.
To learn about possible features to classify regions, one should see RegionFeature documentation. To know details about particular feature, corresponding filter article should be read.