]> Creatis software - clitk.git/commitdiff
Errors in previous commit
authorsrit <srit>
Sat, 26 Mar 2011 22:57:22 +0000 (22:57 +0000)
committersrit <srit>
Sat, 26 Mar 2011 22:57:22 +0000 (22:57 +0000)
registration/clitkDemonsDeformableRegistrationGenericFilter.txx

index fb4ad197ed2aa3bda943522ed79b028f02167d32..887676e3ddb0a874313a9243e69cb3bc5846d987 100755 (executable)
@@ -358,7 +358,7 @@ namespace clitk
        else
          nIterations[i]=m_ArgsInfo.maxIter_arg[0];
       }
-    multiResolutionFilter->SetNumberOfIterations( &(nIterations) );
+    multiResolutionFilter->SetNumberOfIterations( &(nIterations[0]) );
     if(m_Verbose) {
       std::cout<<"Setting the number of iterations to: "<<nIterations[0];
       for (unsigned int i=1; i<nLevels; i++)
@@ -369,7 +369,7 @@ namespace clitk
     //------------------------------------
     //Set the max RMS error for the field update
     //------------------------------------
-    itk::Array<double> maxRMSError[nLevels];
+    itk::Array<double> maxRMSError(nLevels);
     for (unsigned int i=0 ; i<nLevels; i++)
       {
        if (m_ArgsInfo.maxRMSError_given==nLevels)