You are here: Start » AVL.NET » AVL.SortRegions Method
AVL.SortRegions Method
Changes the order of regions from the input array accordingly to an ascending/descending sequence of their computed feature values.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void SortRegions( AvlNet.Region[] inRegions, AvlNet.RegionFeature inFeature, AvlNet.SortingOrder inSortingOrder, out AvlNet.Region[] outSortedRegions, out float[] outSortedValues )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegions | AvlNet.Region | Input regions. | ||
![]() | inFeature | AvlNet.RegionFeature | Region feature value to be computed. | ||
![]() | inSortingOrder | AvlNet.SortingOrder | Sorting order. | ||
![]() | outSortedRegions | AvlNet.Region | Regions sorted according to the computed feature values. | ||
![]() | outSortedValues | float | Computed feature values |
Description
The filter sorts the array of input regions according to the selected feature values computed for each of them.
Examples
![]() |
![]() |
SortRegions performed with inFeature = Area. Input regions are on the left. On the right is the result.