Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Array Composition »
FlattenArray
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 |
Receives an array of arrays, and creates a single one-dimensional array containing all individual elements.
Syntax
void avl::FlattenArray
(
const atl::Array<atl::Array<Type> >& inArray,
atl::Array<Type>& outFlattenedArray
)
Parameters
|
Name |
Type |
Default |
Description |
|
inArray |
const Array<Array<Type> >& |
|
Array to be flattened |
|
outFlattenedArray |
Array<Type>& |
|
Flattened array |
Description
The operation creates an one-dimensional array from all elements of an input two-dimensional array.
Type of filter is defined on initialization by using type variable T.
Input array of arrays size is not restricted.
Examples
|
|
inArray = { { 0 , 3 },
{ 1 , 4 },
{ 2 , 5 } }
|
outFlattenedArray = { 0,
3,
1,
4,
2,
5 }
|
|
|
See Also