Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Conditional Processing »
SelectByPredicate
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 from the input array for which the associated predicate is True.
Syntax
void avl::SelectByPredicate
(
const atl::Array<Type>& inArray,
const atl::Array<bool>& inPredicate,
atl::Array<Type>& outSelected
)
Parameters
|
Name |
Type |
Default |
Description |
|
inArray |
const Array<Type>& |
|
Elements to be classified |
|
inPredicate |
const Array<bool>& |
|
Corresponding logical values determining the output array for each of the elements |
|
outSelected |
Array<Type>& |
|
Array of elements corresponding to 'true' values |
Errors
List of possible exceptions:
Error type |
Description |
DomainError |
Inconsistent array lengths on input in ClassifyByPredicate. |