if(bresult)
{
i_img.push_back(mReader->ReadImage((*it).c_str()));
- }
- else
- {
+ } else {
+ printf("ERROR. Impossible to read file %s\n", (*it).c_str() );
bfinal = false;
- }
- }
+ } // if
+ } // for
delete mReader;
return bfinal;
}
+
bool SimpleView::readDirectory(const std::string i_pathname, std::vector<vtkImageData *> &i_imgs)
{
bool bresult = true;
}
}
std::sort (names.begin(), names.end()); // make sure names are in lexicographical order
- int lgr = names.size();
+ int lgr = (int)names.size();
for(int i=0; i<lgr; i++)
{