Back to Adaptive Vision Library website

You are here: Start » Function Reference » Conditional Processing » SelectByRange

SelectByRange


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Header:STD.h
Namespace:avl

Selects the elements of the input that fall into the specified range.

Syntax

void avl::SelectByRange
(
	const atl::Array<Type>& inArray,
	const atl::Array<float>& inValues,
	atl::Optional<float> inMinimum,
	atl::Optional<float> inMaximum,
	atl::Array<Type>& outSelected
)

Parameters

Name Type Default Description
inArray const Array<Type>& Elements to be classified
inValues const Array<float>& Corresponding values to be compared against the range
inMinimum Optional<float> NIL Lowest value of the range
inMaximum Optional<float> NIL Highest value of the range
outSelected Array<Type>& Array of elements corresponding to values matching the range

Errors

List of possible exceptions:

Error type Description
DomainError Inconsistent array lengths on input in SelectByRange.
DomainError Incorrect (NaN) float value on inValues input in SelectByRange.