]> Creatis software - clitk.git/blobdiff - registration/clitkBSplineDeformableTransformInitializer.txx
Debug RTStruct conversion with empty struc
[clitk.git] / registration / clitkBSplineDeformableTransformInitializer.txx
index 0a93ab0432ae814347454e5b47121e016e8bbedd..5dce7858863aecb94897834086bd96e9a82a3468 100644 (file)
@@ -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
 
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
 #ifndef __clitkBSplineDeformableTransformInitializer_txx
 #define __clitkBSplineDeformableTransformInitializer_txx
 #include "clitkBSplineDeformableTransformInitializer.h"
+#include "itkMath.h"
 
 namespace clitk
 {
@@ -80,7 +81,7 @@ namespace clitk
          {
            // JV
            m_ChosenSpacing[r]= m_ControlPointSpacing[r];
-           m_ControlPointSpacing[r]= ( round(m_ChosenSpacing[r]/fixedImageSpacing[r]) *fixedImageSpacing[r] ) ;
+           m_ControlPointSpacing[r]= ( itk::Math::Round<double>(m_ChosenSpacing[r]/fixedImageSpacing[r]) *fixedImageSpacing[r] ) ;
            m_NumberOfControlPointsInsideTheImage[r] = ceil( (double)fixedImageSize[r]*fixedImageSpacing[r]/ m_ControlPointSpacing[r] );
            if (  ( ceil( (double)fixedImageSize[r]*fixedImageSpacing[r]/ m_ControlPointSpacing[r] ) )
                 == ( (double)fixedImageSize[r]*fixedImageSpacing[r]/ m_ControlPointSpacing[r] ) )