You are here: Start » FIL.NET » Function Reference » Region » Region Relations » FIL.SortRegions
Changes the order of regions from the input array according to an ascending/descending sequence of their computed feature values.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void SortRegions ( IList<FilNet.Region> inRegions, FilNet.RegionFeature inFeature, FilNet.SortingOrder inSortingOrder, IList<FilNet.Region> outSortedRegions, NullableRef<List<float>> outSortedValues )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegions | System.Collections.Generic.IList<FilNet.Region> | Input regions. | ||
![]() | inFeature | FilNet.RegionFeature | Region feature value to be computed. | ||
![]() | inSortingOrder | FilNet.SortingOrder | Sorting order. | ||
![]() | outSortedRegions | System.Collections.Generic.IList<FilNet.Region> | Regions sorted according to the computed feature values. | ||
![]() | outSortedValues | FilNet.NullableRef<System.Collections.Generic.List<float>> | Computed feature values. Can be null to skip this parameter calculation. |
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.