#include <qgarlib/array.H>
They include:
Functions to get the index of the minimum and maximum elements,
Functions to initialize an array with a given value,
Mapping functions (to perform a given operation between all elements of two given arrays).
Global functions about array indexes | |
| template<class T> | |
| int | qgar::qgMinElement (const T *const anArray, int aSize) |
| Return the index of the minimum element of an array. | |
| template<class T> | |
| int | qgar::qgMinElement (const T *const anArray, int aFirstIdx, int aLastIdx) |
| Return the index of the minimum element of a subrange of an array. | |
| template<class T> | |
| int | qgar::qgMaxElement (const T *const anArray, int aSize) |
| Return the index of the maximum element of an array. | |
| template<class T> | |
| int | qgar::qgMaxElement (const T *const anArray, int aFirstIdx, int aLastIdx) |
| Return the index of the maximum element of a subrange of an array. | |
| template<class T> | |
| int | qgar::qgFind (const T *const anArray, int aSize, T aValue) |
| Return the index of a value in an array. | |
| template<class T> | |
| int | qgar::qgFind (const T *const anArray, int aFirstIdx, int aLastIdx, T aValue) |
| Return the index of a value in a subrange of an array. | |
Global functions for array initialization | |
| template<class T> | |
| void | qgar::qgFill (T *anArray, int aSize, T aValue) |
| Set all elements of an array to a value. | |
| template<class T> | |
| void | qgar::qgFill (T *anArray, int aFirstIdx, int aLastIdx, T aValue) |
| Set each element of a subrange of an array. | |
| template<class T> | |
| void | qgar::qgMemSet (T *anArray, int aSize) |
| Set all bytes of an array to 0. | |
| template<class T> | |
| void | qgar::qgMemSet (T *anArray, int aFirstIdx, int aLastIdx) |
| Set all bytes of an array to 0. | |
Global mapping functions on arrays | |
| template<class T> | |
| void | qgar::qgForEach (T *const aSource, T *aDest, int aSize, T(*anOperation)(const T &, const T &)) |
| Apply a function to pairs of elements from two arrays. | |
| template<class T> | |
| void | qgar::qgForEach (T *const aSource, T *aDest, int aFirstIdx, int aLastIdx, T(*anOperation)(const T &, const T &)) |
| Apply a given function to pairs of elements from a subrange of two arrays. | |
|
||||||||||||||||||||||||
|
Set each element of a subrange of an array. The subrange is defined as [aFirstIdx, aLastIdx].
|
|
||||||||||||||||||||
|
Set all elements of an array to a value.
Definition at line 262 of file array.H. Referenced by qgar::ContrastEnhancedImage::ContrastEnhancedImage(), qgar::GenImage< T, CheckPolicy >::copyBox(), qgar::GenMask1d< T >::GenMask1d(), qgar::GenMask2d< T >::GenMask2d(), and qgar::NiblackBinaryImage::NiblackBinaryImage(). |
|
||||||||||||||||||||||||
|
Return the index of a value in a subrange of an array. The subrange is defined as [aFirstIdx, aLastIdx]. The function returns -1 if the value is not found.
|
|
||||||||||||||||||||
|
Return the index of a value in an array. Return -1 if the value is not found in the array.
|
|
||||||||||||||||||||||||||||
|
Apply a given function to pairs of elements from a subrange of two arrays.
|
|
||||||||||||||||||||||||
|
Apply a function to pairs of elements from two arrays.
|
|
||||||||||||||||||||
|
Return the index of the maximum element of a subrange of an array. The subrange is defined as [aFirstIdx, aLastIdx].
|
|
||||||||||||||||
|
Return the index of the maximum element of an array.
|
|
||||||||||||||||||||
|
Set all bytes of an array to 0. The subrange is defined as [aFirstIdx, aLastIdx]. The operation is performed using a low level memset.
|
|
||||||||||||||||
|
Set all bytes of an array to 0. The operation is performed using a low level memset.
Definition at line 313 of file array.H. Referenced by qgar::TTBinaryImage::TTBinaryImage(). |
|
||||||||||||||||||||
|
Return the index of the minimum element of a subrange of an array. The subrange is defined as [aFirstIdx, aLastIdx].
|
|
||||||||||||||||
|
Return the index of the minimum element of an array.
|