Commit 5cda84ab0bf354d736715ee44b861815b00519aa
1 parent
6156690f
putting pranathi on volume spider
Showing
2 changed files
with
8 additions
and
2 deletions
Show diff stats
grids/image_stack.h
@@ -33,7 +33,13 @@ public: | @@ -33,7 +33,13 @@ public: | ||
33 | } | 33 | } |
34 | 34 | ||
35 | //get the list of files | 35 | //get the list of files |
36 | - std::vector<stim::filename> file_list = file_path.get_list(); | 36 | + std::vector<stim::filename> file_list;// = file_path.get_list |
37 | + | ||
38 | + //if there are no matching files, exit | ||
39 | + if(file_list.size() == 0){ | ||
40 | + std::cout<<"STIM ERROR (image_stack): No matching files for loading a stack."<<std::endl; | ||
41 | + exit(1); | ||
42 | + } | ||
37 | 43 | ||
38 | //load the first image and set all of the image_stack properties | 44 | //load the first image and set all of the image_stack properties |
39 | stim::image<T> I(file_list[0].str()); | 45 | stim::image<T> I(file_list[0].str()); |
parser/filename.h
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | #define STIM_FILENAME_H | 2 | #define STIM_FILENAME_H |
3 | 3 | ||
4 | #include <stdio.h> /* defines FILENAME_MAX */ | 4 | #include <stdio.h> /* defines FILENAME_MAX */ |
5 | -#ifdef WINDOWS | 5 | +#ifdef _WIN32 |
6 | #include <direct.h> | 6 | #include <direct.h> |
7 | #define GetCurrentDir _getcwd | 7 | #define GetCurrentDir _getcwd |
8 | #define STIM_FILENAME_DIV '\\' | 8 | #define STIM_FILENAME_DIV '\\' |