From: David Sarrut Date: Mon, 25 Jul 2011 07:14:37 +0000 (+0200) Subject: Change 3 by ImageDimension X-Git-Tag: v1.3.0~276 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e59f5931abf8dc420ebf0e1fd1fba08d4723abf8;p=clitk.git Change 3 by ImageDimension --- diff --git a/itk/clitkForwardWarpImageFilter.txx b/itk/clitkForwardWarpImageFilter.txx index 5e1bb13..e99ef0f 100644 --- a/itk/clitkForwardWarpImageFilter.txx +++ b/itk/clitkForwardWarpImageFilter.txx @@ -154,6 +154,7 @@ void HelperClass1::Thread //define some temp variables signed long baseIndex[ImageDimension]; double distance[ImageDimension]; + for(uint i=0; i::Thread upper = counter; // each bit indicates upper/lower neighbour // get neighbor index and overlap fraction - for( dim = 0; dim < 3; dim++ ) { + for( dim = 0; dim < ImageDimension; dim++ ) { if ( upper & 1 ) { neighIndex[dim] = baseIndex[dim] + 1; overlap *= distance[dim];