X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FitkRayCastInterpolateImageFunctionWithOrigin.txx;h=ebf73cfc2d363c215b302be2c6cdd66c45bd6802;hb=5f801bf0b07486889123e941d6913d4369dfc86f;hp=7a58c052496c9524a58490e2ec2679b8c5497f40;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;p=clitk.git diff --git a/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx b/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx index 7a58c05..ebf73cf 100644 --- a/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx +++ b/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx @@ -1,4 +1,4 @@ -/*========================================================================= +/*======================================================================== Program: vv http://www.creatis.insa-lyon.fr/rio/vv Authors belong to: @@ -20,7 +20,7 @@ #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;