Back to FabImage 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: | fil |
Selects the elements from the input array for which the associated predicate is True.
Syntax
void fil::SelectByPredicate
(
const ftl::Array<Type>& inArray,
const ftl::Array<bool>& inPredicate,
ftl::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. |