From: Simon Rit Date: Thu, 16 May 2013 10:59:30 +0000 (+0200) Subject: Merge branch 'master' of git.creatis.insa-lyon.fr:clitk X-Git-Tag: v1.4.0~230^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e757a9f634e77ea28d5bcd11808b3ebb3ffd3bae;hp=05c1da2360564996beca2ef77b91f25e9c17a4e2;p=clitk.git Merge branch 'master' of git.creatis.insa-lyon.fr:clitk --- diff --git a/common/rtkXRadImageIO.cxx b/common/rtkXRadImageIO.cxx index 1db3027..db5eb72 100644 --- a/common/rtkXRadImageIO.cxx +++ b/common/rtkXRadImageIO.cxx @@ -32,10 +32,10 @@ void rtk::XRadImageIO::ReadImageInformation() itkExceptionMacro(<<"Could not open file " << m_FileName); SetNumberOfDimensions(3); + std::string section=""; while(!is.eof()) { std::string line; - std::string section; std::getline(is, line); if(line.find('[')!=std::string::npos) { @@ -64,17 +64,17 @@ void rtk::XRadImageIO::ReadImageInformation() } else if(paramName == std::string("CBCT.DimensionalAttributes.PixelDimension_I_cm")) { - double spacing = 0.1*atof(paramValue.c_str()); + double spacing = 10*atof(paramValue.c_str()); SetSpacing(0, (spacing==0.)?1.:spacing); } else if(paramName == std::string("CBCT.DimensionalAttributes.PixelDimension_J_cm")) { - double spacing = 0.1*atof(paramValue.c_str()); + double spacing = 10*atof(paramValue.c_str()); SetSpacing(1, (spacing==0.)?1.:spacing); } else if(paramName == std::string("CBCT.DimensionalAttributes.PixelDimension_K_cm")) { - double spacing = 0.1*atof(paramValue.c_str()); + double spacing = 10*atof(paramValue.c_str()); SetSpacing(2, (spacing==0.)?1.:spacing); } else