Back to Adaptive Vision Library website

You are here: Start » Function Reference » Region » Region Relations » GetMaximumRegion_OrNil

GetMaximumRegion_OrNil


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Returns the region from the input array that corresponds to the largest computed feature value; returns NIL if the array or any region inside it is empty.

Applications: Use this filter when you have an array of regions and you want to select one of them that best matches some criterion.

Syntax

C++
C#
 
void avl::GetMaximumRegion_OrNil
(
	const atl::Array<avl::Region>& inRegions,
	avl::RegionFeature::Type inFeature,
	atl::Conditional<avl::Region>& outRegion,
	atl::Conditional<float>& outValue,
	atl::Conditional<int>& outIndex
)

Parameters

Name Type Default Description
inRegions const Array<Region>& Input regions
inFeature RegionFeature::Type Region feature value to be computed
outRegion Conditional<Region>& Output region
outValue Conditional<float>& Computed feature value of the output region
outIndex Conditional<int>&