]> Creatis software - clitk.git/blobdiff - itk/itkRayCastInterpolateImageFunctionWithOrigin.txx
First version to convert image to dicomrtstruct
[clitk.git] / itk / itkRayCastInterpolateImageFunctionWithOrigin.txx
index b2cbb76fe409b8e9bdd76e8809cbbec0cf299e8f..ebf73cfc2d363c215b302be2c6cdd66c45bd6802 100644 (file)
@@ -1,9 +1,9 @@
-/*=========================================================================
+/*========================================================================
   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
 
   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 __itkRayCastInterpolateImageFunctionWithOrigin_txx
 #define __itkRayCastInterpolateImageFunctionWithOrigin_txx
 #include "itkRayCastInterpolateImageFunctionWithOrigin.h"
 
 #include "vnl/vnl_math.h"
-
+#include "clitkCommon.h"
 
 // Put the helper class in an anonymous namespace so that it is not
 // exposed to the user
@@ -498,6 +498,9 @@ RayCastHelper<TInputImage, TCoordRep>
 {
   double maxInterDist, interDist;
   double cornerVect[4][3];
+  for(clitk::uint i=0; i<4; i++)
+    for(clitk::uint j=0; j<3; j++)
+      cornerVect[i][j] = 0.0; // to avoid warning
   int cross[4][3], noInterFlag[6];
   int nSidesCrossed, crossFlag, c[4];
   double ax, ay, az, bx, by, bz;