X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkXdrImageIOReader.cxx;h=b9380a2e2ff476421d98676a2d0c592b861683d0;hb=573d80d0f7a17607d2ee883c21c940c0ba020282;hp=bc3a24a98c5bca867d948b4ed535eeacd14f38f7;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/common/clitkXdrImageIOReader.cxx b/common/clitkXdrImageIOReader.cxx index bc3a24a..b9380a2 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 @@ -683,6 +683,7 @@ int clitk::XdrImageIO::ReadImageInformationWithError() } } + float *p = points; switch (field) { case UNIFORM: for (i=0; i0.1) { + if (fabs((p[j+1]-p[j])*10-GetSpacing(i))>0.1) { free(points); fclose(fstream); return ER_NOT_HANDLED; } } - points += (int)GetDimensions(i); + p += (int)GetDimensions(i); } - for (i=0; i