Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Relations » GetMinimumRegion
GetMinimumRegion
Returns the region from the input array that corresponds to the smallest computed feature value.
Syntax
C++
C#
void avl::GetMinimumRegion ( const atl::Array<avl::Region>& inRegions, avl::RegionFeature::Type inFeature, avl::Region& outRegion, atl::Optional<atl::real&> outValue = atl::NIL )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRegions | const Array<Region>& | Input regions | |
![]() |
inFeature | RegionFeature::Type | Region feature value to be computed | |
![]() |
outRegion | Region& | Output region | |
![]() |
outValue | Optional<real&> | NIL | Computed feature value of the output region |
Description
The filter computes the selected feature value for every input region and returns the one for which value is the smallest.
Examples
![]() |
![]() |
GetMinimumRegion performed with Area as the selected region feature.
Errors
| Error type | Description |
|---|---|
| DomainError | Empty region array on input in GetMinimumRegion |




