Image Component Library (ICL)
|
template specialization for data-segments, where each entry is just 1D More...
#include <DataSegment.h>
Public Types | |
typedef T | VectorType |
vector typedef | |
Public Member Functions | |
DataSegment (T *data=0, size_t stride=0, size_t numElements=0, icl32s organizedWidth=-1) | |
Constructor (basically passes all parameters to the Base class) | |
T & | operator[] (int idx) |
linear index operator (specialized to return a T& directly) | |
const T & | operator[] (int idx) const |
linear index operator (specialized to return a T& directly, const) | |
T & | operator() (int x, int y) |
2D-index operator (only for organized data segments, specialized to return a T& directly) | |
const T & | operator() (int x, int y) const |
2D-index operator (only for organized data segments, specialized to return a T& directly, const) | |
template<class OtherT > | |
void | deepCopy (DataSegment< OtherT, 1 > dst) const throw (utils::ICLException) |
copies the data segment to into another element-wise | |
template<class OtherT > | |
bool | equals (DataSegment< OtherT, 1 > dst, float tollerance=1.0e-5) const |
template<class Fill > | |
void | fillScalar (Fill scalarValue) |
fills each scalar value of each entry with given value | |
template<class Fill > | |
void | fill (Fill vecValue) |
fills each vector entry with given value |
template specialization for data-segments, where each entry is just 1D
If the vector entries are 1D only, no extra vector struct is created and returned for the single vector elements. Instead, all access functions operator[idx]
and operator(x,y)
are will just return T-references instead of math::FixedColVector<T,1>
typedef T icl::core::DataSegment< T, 1 >::VectorType |
vector typedef
icl::core::DataSegment< T, 1 >::DataSegment | ( | T * | data = 0 , |
size_t | stride = 0 , |
||
size_t | numElements = 0 , |
||
icl32s | organizedWidth = -1 |
||
) | [inline] |
Constructor (basically passes all parameters to the Base class)
void icl::core::DataSegment< T, 1 >::deepCopy | ( | DataSegment< OtherT, 1 > | dst | ) | const throw (utils::ICLException) [inline] |
copies the data segment to into another element-wise
bool icl::core::DataSegment< T, 1 >::equals | ( | DataSegment< OtherT, 1 > | dst, |
float | tollerance = 1.0e-5 |
||
) | const [inline] |
void icl::core::DataSegment< T, 1 >::fill | ( | Fill | vecValue | ) | [inline] |
fills each vector entry with given value
void icl::core::DataSegment< T, 1 >::fillScalar | ( | Fill | scalarValue | ) | [inline] |
fills each scalar value of each entry with given value
equal to fill in this specialization
T& icl::core::DataSegment< T, 1 >::operator() | ( | int | x, |
int | y | ||
) | [inline] |
2D-index operator (only for organized data segments, specialized to return a T& directly)
Reimplemented from icl::core::DataSegmentBase.
const T& icl::core::DataSegment< T, 1 >::operator() | ( | int | x, |
int | y | ||
) | const [inline] |
2D-index operator (only for organized data segments, specialized to return a T& directly, const)
Reimplemented from icl::core::DataSegmentBase.
T& icl::core::DataSegment< T, 1 >::operator[] | ( | int | idx | ) | [inline] |
linear index operator (specialized to return a T& directly)
Reimplemented from icl::core::DataSegmentBase.
const T& icl::core::DataSegment< T, 1 >::operator[] | ( | int | idx | ) | const [inline] |
linear index operator (specialized to return a T& directly, const)
Reimplemented from icl::core::DataSegmentBase.