eleni@0: #ifndef IMAGE_H_ eleni@0: #define IMAGE_H_ eleni@0: eleni@0: class Image { eleni@0: private: eleni@0: float *pixels; eleni@0: int width; eleni@0: int height; eleni@0: public: eleni@0: Image(); eleni@0: ~Image(); eleni@0: eleni@0: bool load(const char *fname); eleni@0: eleni@0: float *get_pixels(); eleni@0: const float *get_pixels() const; eleni@0: void set_pixels(const float *pixels, int width, int height); eleni@0: eleni@0: int get_width() const; eleni@0: int get_height() const; eleni@0: }; eleni@0: eleni@0: #endif //IMAGE_H_