X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkXdrImageIOReader.cxx;h=07384efe5cc9e965e9f07e3ed33655128a68a5c2;hb=d2d75b63a31a4bfbbed0c22333e34dba688e6503;hp=6f702447df97dce1a4c8fa45ea552bf29dabd412;hpb=f9ba8e0c066f58c8d9f2b10db4306f42470fe7a2;p=clitk.git diff --git a/common/clitkXdrImageIOReader.cxx b/common/clitkXdrImageIOReader.cxx index 6f70244..07384ef 100644 --- a/common/clitkXdrImageIOReader.cxx +++ b/common/clitkXdrImageIOReader.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ /** * @file clitkXdrImageIO.cxx * @author Simon Rit @@ -700,11 +700,13 @@ int clitk::XdrImageIO::ReadImageInformationWithError() SetOrigin(i,10*p[0]); //Test if rectilinear image is actually uniform (tolerance 0.1 mm) - for (j=0; j0.1) { - free(points); - fclose(fstream); - return ER_NOT_HANDLED; + if(i<3) { // Only for first 3 dimensions because spacing is barely used in other dims + for (j=0; j0.1) { + free(points); + fclose(fstream); + return ER_NOT_HANDLED; + } } } p += (int)GetDimensions(i);