]> Creatis software - clitk.git/blobdiff - itk/clitkComposeVFFilter.txx
returned normal function to overlay menu
[clitk.git] / itk / clitkComposeVFFilter.txx
index b02de1bd9f3d14c068f96f263e9d72ec7fd9b5ff..f0bf5a9a7a159fd7183a14159f70244598dae809 100644 (file)
@@ -36,7 +36,7 @@ namespace clitk
   //=========================================================================================================================
   //update the output for the outputRegionForThread
   template<class InputImageType, class OutputImageType> 
-  void ComposeVFFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
+  void ComposeVFFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId )
   {
  
     //Get pointer to the output
@@ -116,7 +116,7 @@ namespace clitk
                
                
                // get neighbor index and overlap fraction
-               for( dim = 0; dim < 3; dim++ )
+               for( dim = 0; dim < ImageDimension; dim++ )
                  {
                    if ( upper & 1 )
                      {