X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkImageCommon.cxx;h=d2ab8673778dc1b92fb3b618430df840cce21766;hb=7fb3f08a03ea03edb40f5e73d59381c5a92935fb;hp=03aa9b6a5d687469e179fe5ddc37d4c86189d3ca;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/common/clitkImageCommon.cxx b/common/clitkImageCommon.cxx index 03aa9b6..d2ab867 100644 --- a/common/clitkImageCommon.cxx +++ b/common/clitkImageCommon.cxx @@ -38,7 +38,7 @@ void clitk::ReadImageDimensionAndPixelType(const std::string & filename, itk::ImageIOBase::Pointer genericReader = itk::ImageIOFactory::CreateImageIO(filename.c_str(), itk::ImageIOFactory::ReadMode); if (!genericReader) { - std::cerr << "Image file format unknown while reading " << filename << std::endl; + std::cerr << "Image file format unknown while reading file <" << filename << ">" << std::endl; exit(0); } genericReader->SetFileName(filename.c_str()); @@ -137,6 +137,7 @@ void clitk::printImageHeader(itk::ImageIOBase::Pointer header, std::ostream & os for(unsigned int i=0; i< dim-1; i++) os << inputOrigin[i] << "x"; os << inputOrigin[dim-1] << " "; + os << header->GetImageSizeInPixels() << " "; } else { os << "Dim = " << dim << "D" << std::endl; os << "PixelType = " << pixelTypeName << std::endl;