]> Creatis software - clitk.git/commitdiff
Correct last commit
authorsrit <srit>
Sat, 26 Mar 2011 21:39:36 +0000 (21:39 +0000)
committersrit <srit>
Sat, 26 Mar 2011 21:39:36 +0000 (21:39 +0000)
registration/clitkDemonsDeformableRegistrationGenericFilter.txx

index 13f81e3a324fd28bb2432d887fa6d17511e95266..fb4ad197ed2aa3bda943522ed79b028f02167d32 100755 (executable)
@@ -348,7 +348,7 @@ namespace clitk
     //------------------------------------
     //Set the number of iterations
     //------------------------------------
-    itk::Array<unsigned int> nIterations(nLevels);
+    std::vector<unsigned int> nIterations(nLevels);
     for (unsigned int i=0 ; i<nLevels; i++)
       {
        if (m_ArgsInfo.maxIter_given==nLevels)
@@ -358,7 +358,7 @@ namespace clitk
        else
          nIterations[i]=m_ArgsInfo.maxIter_arg[0];
       }
-    multiResolutionFilter->SetNumberOfIterations( nIterations );
+    multiResolutionFilter->SetNumberOfIterations( &(nIterations) );
     if(m_Verbose) {
       std::cout<<"Setting the number of iterations to: "<<nIterations[0];
       for (unsigned int i=1; i<nLevels; i++)