Type:
Template image class having template parameters T - vector element type eg. int R - return type for norms etc. |
Image | (unsigned int w = 0, unsigned int h = 0) ; |
Image | (unsigned int w, unsigned int h, T pixel) ; |
Image | (const ImageSize& size) ; |
Image | (const ImageSize& size, T pixel) ; |
Construct given vector size and element initialiser |
Image | (const Image<unsigned short, real>& ip) ; |
Cloning copy constructor/type conversions (other types here as well) |
Image | (const Image<float, float>& ip) ; |
template <class P, class Q> Image | (const Image<P, Q>& ip) ; |
Image<T, R>& operator= | (const Subimage<T, R>& subimage) ; |
Cloning assignment Assignment operator setting image from a subimage. Note that memory is re-allocated if subimage size does not match existing image size |
Image | (ImageRef<T, R>& r) ; |
Reference passing copy constructor |
Image<T, R>& operator= | (ImageRef<T, R>& r) ; |
Reference passing assignment operator |
unsigned int iwidth | () const ; |
Image dimension access |
unsigned int iheight | () const ; |
void reset | (const ImageSize& is) ; |
Destroy image and reallocate image of requested size |
T& operator() | (unsigned int x, unsigned int y) const ; |
Pixel access |
T& operator() | (const PixelIndex& pi) const ; |
Image<T, R>& operator+= | (const Image<T, R>& u) ; |
Compound assignments |
Image<T, R>& operator+= | (T k) ; |
Image<T, R>& operator-= | (const Image<T, R>& u) ; |
Image<T, R>& operator-= | (T k) ; |
Image<T, R>& operator*= | (T k) ; |
Image<T, R>& operator/= | (T k) ; |
Image | (const Subimage<T, R>& subimage) ; |
Sub-image Constructor creating image from a subimage |
Image<T, R>& operator= | (const Subimage<T, R>& subimage) ; |
Cloning assignment Assignment operator setting image from a subimage. Note that memory is re-allocated if subimage size does not match existing image size |
Subimage<T, R> operator() | (unsigned int x, unsigned int y, unsigned int w, unsigned int h) const ; |
Select subimage of image |
Subimage<T, R> row | (unsigned int r) const ; |
Subimage<T, R> col | (unsigned int c) const ; |
Image<T, R>& isometry | (const Image<T, R>& image, unsigned char op) ; |
Rotation and reflection of *this image. Operation in range 0 .. 7, consisting of 3 bits bit 0: reflection along main diagonal bit 1: horizontal reflection bit 2: vertical reflection |
Image<T, R>& subsample | (const Image<T, R>& im, unsigned int k=2, unsigned int l=2) ; |
Subsample image im and place result in *this. Arguments are subsampling ratios in horizontal and vertical directions |
bool native_write | (char* filename) const ; |
File access |
bool native_read | (char* filename) ; |
bool save | (const ImageFileInterface<T, R>& imfi) const ; |