if (!reader) {
if (exit_on_error) { //default behavior for tools who don't handle the problem
clitkExceptionMacro("Error reading file " << filename << ", exiting immediately");
- } else return NULL;
+ } else return (itk::ImageIOBase *) ITK_NULLPTR;
}
reader->SetFileName(filename);
reader->ReadImageInformation();
for(unsigned int i=0; i< dim-1; i++)
os << inputSize[i] << "x";
os << inputSize[dim-1]
- << " ";
+ << " ";
for(unsigned int i=0; i< dim-1; i++)
os << inputSpacing[i] << "x";
os << inputSpacing[dim-1]
- << " ";
+ << " ";
for(unsigned int i=0; i< dim-1; i++)
os << inputOrigin[i] << "x";
os << inputOrigin[dim-1] << " ";