Back to Adaptive Vision Library website
You are here: Start » Function Reference » Array Basics » AvsFilter_GetMultipleArrayElements
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Extracts multiple elements from an array.
Syntax
void avs::AvsFilter_GetMultipleArrayElements ( const atl::Array<Type>& inArray, const atl::Array<int>& inIndices, bool inInverse, atl::Array<Type>& outValues )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inArray | const Array<Type>& | Input array | ||
inIndices | const Array<int>& | Indices within the array | ||
inInverse | bool | Reversed order in the array | ||
outValues | Array<Type>& | Output values |
Hints
- When you need only one array element, use AvsFilter_GetArrayElement instead.
- When you need a continuous subsequence of array elements, use CropArray.
Examples
inArray = {100, 430, 35, 250, 55, 130} inIndices = {2, 4, 3, 3} |
outValues = {35, 55, 250, 250} |
Errors
Error type | Description |
---|---|
DomainError | Index out of range in GetMultipleArrayElements. |