Image Utilities (IU)
|
Base class for N-dimensional vectors. More...
#include <vector.h>
Public Member Functions | |
VectorBase () | |
VectorBase (const PixelType &value) | |
VectorBase (std::initializer_list< PixelType > list) | |
virtual | ~VectorBase () |
PixelType | operator[] (unsigned int i) const |
PixelType & | operator[] (unsigned int i) |
void | fill (const PixelType &value) |
Static Public Member Functions | |
static unsigned int | ndim () |
Protected Attributes | |
PixelType | data_ [Ndim] |
Friends | |
template<typename T = std::ostream> | |
std::enable_if<(Ndim==1), T & > ::type | operator<< (std::ostream &out, VectorBase< PixelType, Ndim > const &v) |
template<typename T = std::ostream> | |
std::enable_if<(Ndim > 1), T & > ::type | operator<< (std::ostream &out, VectorBase< PixelType, Ndim > const &v) |
Base class for N-dimensional vectors.
|
inline |
Constructor.
|
inline |
Special Constructor. Init all elements of the vector with a special value.
value | value to initialize vector elements. |
|
inline |
Special Constructor. Init all elements of the vector with a initializer list.
list | Initializer list, e.g. {1,2,3}. |
|
inlinevirtual |
Destructor.
|
inline |
Fill the vector with a specific value.
|
inlinestatic |
Get number of dimensions.
|
inline |
Overload [] to access the size elements.
|
inline |
Overload [] to access the size elements.
|
friend |
Operator<< overloading for Ndim==1. Output of VectorBase class.
|
friend |
Operator<< overloading for Ndim>1. Output of VectorBase class.
|
protected |
data buffer