[Insight-users] RE: Reg Deformabale Reg 6

Luis Ibanez luis.ibanez at kitware.com
Mon Sep 27 15:00:49 EDT 2004


Hi Dalal,

1) Thanks for pointing this out, you are right, there is
    no method "SetIdentity()" defined in the BSpline transform.

    We just added this method and committed the change to the
    CVS repository. Please update your CVS checkout or, if you
    wish, simply follow the Example in ImageRegistration4.cxx
    where the array of parameters is filled up with zeros.


2) When you use the BSpline transform you are better off using
    the LBFGSOptimizer. This optimizer is better adapted for
    cost functions with large number of parameters, which is the
    that case of BSplines. Please look at the example

            DeformableRegistration4.cxx



Regards,


     Luis



--------------------
Dalal, Dhaval wrote:

>  
> Hey Luis
> I Changed the transform in MultiresImageregistration2.cxx from affine to 
> bspline.
> 
> I have a few changes to the code in addition to changing it for 3D.
> When i compile i get the following error
> :\thesis\InsightToolkit-1.8.0\InsightToolkit-1.8.0\Analyze2\MultiResImageReg
> istration2.cxx(269) : error C2039: 'SetIdentity' : is not a member of
> 'BSplineDeformableTransform<double,3,3>'
> where the line (269) is transform->SetIdentity();
> Also do I need to change the optimizer-
> itkRegularStepGradientDescentOptimizer.h , since i had read that the
> magnitude of the metric value is directly proportional to the step rate or
> the learning rate. Can you please elaborate this point.
> Since my goal is to do deformable registration, i need to change to bsplines
> transform
> Also I am posting my code for your refernece.
> Your help will be greatly appreciated!!.






More information about the Insight-users mailing list