volmetrics
view src/image.h @ 1:cca2e05dbabe
display one slide (debugging)
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Sat, 11 Jan 2014 17:50:16 +0200 |
parents | |
children | 1fbbe10c8e08 |
line source
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
4 class Image {
5 private:
6 float *pixels;
7 int width;
8 int height;
9 public:
10 Image();
11 ~Image();
13 bool load(const char *fname);
15 float *get_pixels();
16 const float *get_pixels() const;
17 void set_pixels(const float *pixels, int width, int height);
19 int get_width() const;
20 int get_height() const;
21 };
23 #endif //IMAGE_H_