|
|
| Image () |
| | Constructor.
|
| |
| | Image (unsigned int width, unsigned int height, unsigned int channel, unsigned short imgType) |
| | Constructor. More...
|
| |
| | Image (float *data, unsigned int width, unsigned int height, unsigned int channel) |
| | Constructor. More...
|
| |
| | Image (unsigned char *data, unsigned int width, unsigned int height, unsigned int channel) |
| | Constructor. More...
|
| |
| | Image (std::vector< float > data, unsigned int width, unsigned int height, unsigned int channel) |
| | Constructor. More...
|
| |
| | Image (std::vector< unsigned char > data, unsigned int width, unsigned int height, unsigned int channel) |
| | Constructor. More...
|
| |
|
| ~Image () |
| | Destructor.
|
| |
|
| Image (const Image &other) |
| | Copy constructor.
|
| |
|
Image & | operator= (const Image &other) |
| | Assign operator.
|
| |
|
unsigned short | imageType () const |
| | Get Image type.
|
| |
|
unsigned int | width () const |
| | Get image width.
|
| |
|
unsigned int | height () const |
| | Get image height.
|
| |
|
unsigned int | channels () const |
| | Get number of channels.
|
| |
|
const float * | pixelsFloat () const |
| | Get float pixels data.
|
| |
|
float * | pixelsFloat () |
| | Get float pixels data.
|
| |
|
const unsigned char * | pixels () const |
| | Get float pixels data.
|
| |
|
unsigned char * | pixels () |
| | Get float pixels data.
|
| |
|
void | clear () |
| | Clear image.
|
| |
|
void | loadFromFile (const std::string &fileName) |
| | Load form file.
|
| |
| bool | saveToFile (const std::string &fileName) const |
| | Save to file. More...
|
| |
|
void | reverseV () |
| | reverse v
|
| |
Image class.
Stores an image object as an array of pixels The image can be stored as byte array or float array