]> Creatis software - clitk.git/blobdiff - itk/itkRayCastInterpolateImageFunctionWithOrigin.txx
Add initialisation to avoid warning
[clitk.git] / itk / itkRayCastInterpolateImageFunctionWithOrigin.txx
index b2cbb76fe409b8e9bdd76e8809cbbec0cf299e8f..72dcc3109611b5259ded1f59f8bc30833430e783 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
@@ -14,7 +14,7 @@
 
   - 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"
@@ -498,6 +498,9 @@ RayCastHelper<TInputImage, TCoordRep>
 {
   double maxInterDist, interDist;
   double cornerVect[4][3];
+  for(uint i=0; i<4; i++)
+    for(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;