Back to FabImage Library websiteYou are here:
Start »
Function Reference »
Conditional Processing »
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: | fil |
Selects the elements of the input that fall into the specified range.
Syntax
void fil::SelectByRange
(
const ftl::Array<Type>& inArray,
const ftl::Array<float>& inValues,
ftl::Optional<float> inMinimum,
ftl::Optional<float> inMaximum,
ftl::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. |