Commit 0012d210b79f6a8bf6210265e8c20d6cd2fd468a
1 parent
470ab611
fixed compiler errors related to NetMets
Showing
3 changed files
with
5 additions
and
1 deletions
Show diff stats
stim/grids/image_stack.h
... | ... | @@ -206,9 +206,12 @@ public: |
206 | 206 | } |
207 | 207 | |
208 | 208 | |
209 | + /* This was causing compiler errors. I don't think this function call exists anywhere: | |
210 | + | |
209 | 211 | void read(std::string file, unsigned int X, unsigned int Y, unsigned int Z, unsigned int C = 1, unsigned int header = 0){ |
210 | 212 | read(file, stim::vec<unsigned long>(C, X, Y, Z), header); |
211 | 213 | } |
214 | + */ | |
212 | 215 | |
213 | 216 | T* data(){ |
214 | 217 | return ptr; | ... | ... |
stim/image/image.h
... | ... | @@ -653,7 +653,7 @@ public: |
653 | 653 | |
654 | 654 | //crop regions given by an array of 1D index values |
655 | 655 | std::vector< image<T> > crop_idx(size_t w, size_t h, std::vector<size_t> idx) { |
656 | - std::vector<image<T>> result(idx.size()); //create an array of image files to return | |
656 | + std::vector< image<T> > result(idx.size()); //create an array of image files to return | |
657 | 657 | for (size_t i = 0; i < idx.size(); i++) { //for each specified index point |
658 | 658 | size_t y = idx[i] / X(); //calculate the y coordinate from the 1D index (center of ROI) |
659 | 659 | size_t x = idx[i] - y * X(); //calculate the x coordinate (center of ROI) | ... | ... |