Back to Aurora Vision Studio website

You are here: Start » Filter Reference » Region » Region Relations » SortRegions

SortRegions


Module: FoundationBasic

Changes the order of regions from the input array according to an ascending/descending sequence of their computed feature values.

Name Type Description
Input value inRegions RegionArray Input regions
Input value inFeature RegionFeature Region feature value to be computed
Input value inSortingOrder SortingOrder Sorting order
Output value outSortedRegions RegionArray Regions sorted according to the computed feature values
Output value outSortedValues RealArray Computed feature values

Description

The filter sorts the array of input regions according to the selected feature values computed for each of them.

Examples

Description of usage of this filter can be found in examples and tutorial: Sorting Blobs.

SortRegions performed with inFeature = Area. Input regions are on the left. On the right is the result.

Complexity Level

This filter is available on Advanced Complexity Level.

See Also

  • SortArray – Changes the order of the input array elements according to an ascending/descending sequence of the value array.
  • GetMaximumRegion – Returns the region from the input array that corresponds to the largest computed feature value.
  • GetMinimumRegion – Returns the region from the input array that corresponds to the smallest computed feature value.
  • ClassifyRegions – Splits an array of regions according to the selected feature and range.