]> Creatis software - clitk.git/blobdiff - common/clitkHisImageIO.cxx
basic GUI state loading/saving functionality
[clitk.git] / common / clitkHisImageIO.cxx
old mode 100755 (executable)
new mode 100644 (file)
index e8b878c..dd594a8
@@ -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));
 } ////
 
 //--------------------------------------------------------------------