Skip to content

Commit

Permalink
fix inputmask()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinat M authored Mar 21, 2019
1 parent 5ffb0c4 commit cb7ee17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Ridgelets/DATA_SOURCE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ int DATA_SOURCE::readMask(string inputMask, MaskImagePointer& image) {
MaskReaderType::Pointer reader = MaskReaderType::New();

// Make some inputfiles checks
string ext_vol = inputMask.substr(inputMask.length() - 4, inputMask.length());

if (!is_path_exists(inputMask)) {
cout << "Input mask image is not provided. Please, stop program and provide mask file if you forget to include it." << endl;
return EXIT_SUCCESS;
}

string ext_vol = inputMask.substr(inputMask.length() - 4, inputMask.length());

if (ext_vol.compare("nhdr")) {
if (ext_vol.compare("nrrd")) {
cout << "NDHR or NRRD file formats only! Please, check file type." << endl;
Expand Down

0 comments on commit cb7ee17

Please sign in to comment.