glviewvol
diff src/volume.h @ 14:0d2447b9c512
did the histogram... doesn't seem to work right
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 01 Jan 2015 06:36:45 +0200 |
parents | 773f89037a35 |
children |
line diff
1.1 --- a/src/volume.h Wed Dec 31 07:57:42 2014 +0200 1.2 +++ b/src/volume.h Thu Jan 01 06:36:45 2015 +0200 1.3 @@ -42,6 +42,10 @@ 1.4 int size[3]; 1.5 std::vector<Image> slices; 1.6 1.7 + float *hist; 1.8 + int num_hist_samples; 1.9 + bool hist_valid; 1.10 + 1.11 public: 1.12 VoxelVolume(); 1.13 ~VoxelVolume(); 1.14 @@ -52,6 +56,8 @@ 1.15 1.16 float valuef(float x, float y, float z) const; 1.17 float valuei(int x, int y, int z) const; 1.18 + 1.19 + float *calc_histogram(int hist_samples); 1.20 }; 1.21 1.22 #endif // VOLUME_H_