Blame view

stim/grids/grid3.h 733 Bytes
d9b2b2a8   David Mayerich   enabled basic rea...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  #ifndef STIM_GRID3_H
  #define STIM_GRID3_H
  
  namespace stim{
  
  template<typename T, typename F = float>
  class grid : public stim::grid<T, 3, F>{
  
  public:
  
  	/// Convert grid coordinates (integers) into world coordinates (F) based on the pixel spacing
  	void grid2volume(size_t xi, size_t yi, size_t zi, F& x, F& y, F&z){
  
  	}
  
  	/// Use linear interpolation to get a value from the grid at (x, y, z) in VOLUME space (based on voxel size)
  	T lerp(F x, F y, F z){
  
  	}
  	/// Create a resampled grid with isotropic voxel sizes
  	grid3<T, F> resample_iso(){
  
  		//find the smallest spacing
  		//create a new grid of the appropriate size
  		//use linear interpolation to resample the old grid into the new grid
  	}
  
  
  };
  }			//end namespace stim
  
  #endif