[Insight-users] LBFGSBoptimizer and MI value

Serena Fabbri fabbri at u.washington.edu
Tue Jun 30 16:00:47 EDT 2009


Hi All,

I am using DeformableRegistration8 with Mattes Mutual Information and LBFGSBoptimizer.
I'd like to know how the MI and the parameters change in each iteration. 
In the example, class CommandIterationUpdate is implemented  and I only add :

std::cout <<"Iter "<<optimizer->GetCurrentIteration() << "   ";
std::cout <<" Metric "<<optimizer->GetValue() << ":";
std::cout <<" Parameters "<<optimizer->GetCurrentPosition() << std::endl;

I use a Bspline-grid with 3 bound nodes and 3 node in the image and  I run fixed=MRI (176, 256, 
160) (1,1,1)mm   moving=CT (176, 256, 160) (1,1,1)mm

The code runs, I get a pretty good registered image but Metric value and parameters values are  
always 0.
could anybody point out me where the error is?
are the above instructions wrong?


Thanks.

Serena.



More information about the Insight-users mailing list