|
| DataSegment (T *data=0, size_t stride=0, size_t numElements=0, icl32s organizedWidth=-1) |
| Constructor (basically passes all parameters to the Base class) More...
|
|
T & | operator[] (int idx) |
| linear index operator (specialized to return a T& directly) More...
|
|
const T & | operator[] (int idx) const |
| linear index operator (specialized to return a T& directly, const) More...
|
|
T & | operator() (int x, int y) |
| 2D-index operator (only for organized data segments, specialized to return a T& directly) More...
|
|
const T & | operator() (int x, int y) const |
| 2D-index operator (only for organized data segments, specialized to return a T& directly, const) More...
|
|
template<class OtherT > |
void | deepCopy (DataSegment< OtherT, 1 > dst) const |
| copies the data segment to into another element-wise More...
|
|
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 More...
|
|
template<class Fill > |
void | fill (Fill vecValue) |
| fills each vector entry with given value More...
|
|
bool | isOrganized () const |
| returns, whether the segment is 2D-organized More...
|
|
utils::Size | getSize () const |
| returns the ordred size of the segment of utils::Size::null if it's not organized More...
|
|
int | getStride () const |
| returns the internal stride used More...
|
|
int | getDim () const |
| returns the number of elements More...
|
|
core::depth | getDepth () const |
| returns the actual core::depth (data type) of the entries More...
|
|
int | getElemDim () const |
| returns the dimension of the contained elements More...
|
|
icl8u * | getDataPointer () |
| returns the internal (strided) data pointer More...
|
|
const icl8u * | getDataPointer () const |
| returns the internal (strided) data pointer More...
|
|
| DataSegmentBase (void *data=0, size_t stride=0, size_t numElements=0, icl32s organizedWidth=-1, core::depth dataDepth=core::depth8u, size_t elemDim=0) |
| Constructor with given parameters. More...
|
|
template<class T , int N> |
const DataSegment< T, N > & | as () const |
| shallow and save cast from data segment base to special data segment version More...
|
|
Bytes | operator[] (int idx) |
| linear index operator More...
|
|
const Bytes | operator[] (int idx) const |
| linear index operator (const) More...
|
|
Bytes | operator() (int x, int y) |
| 2D-index operator (only for organized data segments) More...
|
|
const Bytes | operator() (int x, int y) const |
| 2D-index operator (only for organized data segments, const) More...
|
|
template<class T>
struct icl::core::DataSegment< T, 1 >
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>