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;