X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkHisImageIO.cxx;h=dd594a89a99986bfa4ccc406b79db1f07ad1c474;hb=c3358d7e514585e32f26e91d1c450d1c129929bc;hp=e8b878cdb752aa7e62eb00fafa314aa538fd17d9;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/common/clitkHisImageIO.cxx b/common/clitkHisImageIO.cxx old mode 100755 new mode 100644 index e8b878c..dd594a8 --- a/common/clitkHisImageIO.cxx +++ b/common/clitkHisImageIO.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 -======================================================================-====*/ +===========================================================================**/ #ifndef CLITKHISIMAGEIO_CXX #define CLITKHISIMAGEIO_CXX #define HEADER_INFO_SIZE 68 @@ -90,6 +90,12 @@ void clitk::HisImageIO::ReadImageInformation() SetDimensions(1, brx-ulx+1); if (nrframes>1) SetDimensions(2, nrframes); + + SetSpacing(0, 409.6/GetDimensions(0)); + SetSpacing(1, 409.6/GetDimensions(1)); + + SetOrigin(0, -0.5*(GetDimensions(0)-1)*GetSpacing(0)); + SetOrigin(1, -0.5*(GetDimensions(1)-1)*GetSpacing(1)); } //// //--------------------------------------------------------------------