33 #ifndef _BLITZIMAGEACCESSWRAPPER_HH 34 #define _BLITZIMAGEACCESSWRAPPER_HH 41 #include <blitz/array.h> 73 void setPixel(blitz::TinyVector<int,2>& pos,
78 void setPixel(blitz::TinyVector<int,2>& pos,
84 void resize(blitz::TinyVector<int,2>& pos);
89 unsigned char getPixelR(
int y,
int x)
const;
90 unsigned char getPixelG(
int y,
int x)
const;
91 unsigned char getPixelB(
int y,
int x)
const;
96 unsigned char*
data()
const;
104 blitz::Array<unsigned char, 3>* layeredDataRGB;
105 blitz::Array<unsigned char, 2>* layeredDataGray;
106 blitz::Array<blitz::TinyVector<unsigned char,3>,2>* vectDataRGB;
unsigned char getPixelG(int y, int x) const
unsigned char getPixelB(int y, int x) const
void resize(int y, int x)
To allow for different blitz storage formats to be handeled equally.
void setPixel(int y, int x, unsigned char R, unsigned char G, unsigned char B)
unsigned char * data() const
ImageAccessWrapper(blitz::Array< unsigned char, 3 > &data)
unsigned char getPixelR(int y, int x) const
blitz::TinyVector< unsigned char, 3 > BlitzRGBColor