[Insight-users] MMI, BSpline Transformation and binary images

Serena Fabbri fabbri at u.washington.edu
Fri Oct 23 15:18:42 EDT 2009


Hi All,

I write because i have problems with Registration of binary images.
My images are pixelsize: 80x80x101, spacing: 4x4x1 mm 
I have used :

1-Mattes Mutual Information + LBFGSB + NearestNeighbor Interpolator 
The registration stars without errors but it terminates after 0 iteration.

        optimizer->SetCostFunctionConvergenceFactor( 1.e1 );
        optimizer->SetProjectedGradientTolerance( 1e-8 );
        optimizer->SetMaximumNumberOfIterations( 200 );
        optimizer->SetMaximumNumberOfEvaluations( 200 );
        optimizer->SetMaximumNumberOfCorrections( 200 );



2-Mattes Mutual Information + Amoeba +NearestNeighbor Interpolator

         simplexDelta.Fill( 1) ;
 	optimizer->AutomaticInitialSimplexOff();
 	optimizer->SetInitialSimplexDelta( simplexDelta );
 	optimizer->SetParametersConvergenceTolerance( 0.001) ;
  	optimizer->SetFunctionConvergenceTolerance( 0.1);
         optimizer->SetMaximumNumberOfIterations(  10 );



I get this error:


Bspline_MMI_Amoeba_NearNei(80555) malloc: *** mmap(size=294912) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
terminate called after throwing an instance of 'std::bad_alloc'
   what():  St9bad_alloc
Abort trap


Any suggestion?


Thank you a lot.
Serena






More information about the Insight-users mailing list