From e59f5931abf8dc420ebf0e1fd1fba08d4723abf8 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Mon, 25 Jul 2011 09:14:37 +0200 Subject: [PATCH] Change 3 by ImageDimension --- itk/clitkForwardWarpImageFilter.txx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- 2.47.1