glviewvol
diff src/image.h @ 0:7bdf40403b9c
dicom viewer project underway
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 27 Dec 2014 02:35:58 +0200 |
parents | |
children | 32c4a7160350 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/image.h Sat Dec 27 02:35:58 2014 +0200 1.3 @@ -0,0 +1,18 @@ 1.4 +#ifndef IMAGE_H_ 1.5 +#define IMAGE_H_ 1.6 + 1.7 +class Image { 1.8 +public: 1.9 + int width, height; 1.10 + float *pixels; 1.11 + 1.12 + Image(); 1.13 + ~Image(); 1.14 + 1.15 + // if data == 0, just allocate space 1.16 + bool set_pixels(int x, int y, float *data = 0); 1.17 + 1.18 + bool load(const char *fname); 1.19 +}; 1.20 + 1.21 +#endif // IMAGE_H_