X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FitkRayCastInterpolateImageFunctionWithOrigin.txx;h=ebf73cfc2d363c215b302be2c6cdd66c45bd6802;hb=738abae55fb33a7c77843a9d84bc14d5439bff1a;hp=b2cbb76fe409b8e9bdd76e8809cbbec0cf299e8f;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx b/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx index b2cbb76..ebf73cf 100644 --- a/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx +++ b/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx @@ -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 @@ -14,13 +14,13 @@ - 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 { 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;