CUV
0.9.201304091348
|
a wrapper around a tensor to provide an interleaved (e.g. More...
#include <image.hpp>
Public Types | |
typedef cuv::tensor < __value_type, __memory_space_type, row_major > | tensor_type |
the type of the wrapped tensor: Row-major and strided! | |
typedef tensor_type::index_type | index_type |
the index type | |
typedef tensor_type::reference_type | reference_type |
the type of returned references |
Public Member Functions | |
interleaved_image (unsigned int h, unsigned int w, unsigned int c=1) | |
construct an interleaved image based on dimensions | |
interleaved_image (const interleaved_image &o) | |
copy-construct an interleaved_image | |
index_type | width () const |
index_type | height () const |
index_type | channels () const |
const tensor_type & | tens () const |
reference_type | operator() (index_type i, index_type j, index_type c=0) |
element access | |
const reference_type | operator() (index_type i, index_type j, index_type c=0) const |
const element access | |
interleaved_image & | operator= (const interleaved_image &o) |
assignment operator |
Static Public Attributes | |
static const int | num_channels = NumChannels |
a wrapper around a tensor to provide an interleaved (e.g.
RGBRGBRGB...) image
the internal tensor is a strided tensor.
|
inline |
|
inline |
copy-construct an interleaved_image
o | source image |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |