[Insight-users] BSpline Deformable Registration Error
Luis Ibanez
luis.ibanez at kitware.com
Mon Aug 28 12:14:02 EDT 2006
Hi Matt,
Please add the following code just before running the registration.
extractFilter1->Update();
extractFilter2->Update();
extractFilter1->GetOutput()->Print(std::cout);
extractFilter2->GetOutput()->Print(std::cout);
and post to the list the output of hte Print() statements.
BTW, I'm assuming that you are using the ExtractImageFilter
in order to get the slices out of the volumes. Is that right ?
Thanks
Luis
-----------------------
Matt Robert wrote:
> Hi,
>
> I used example DeformableRegistration4 to register two images. It works
> perfectly well and gives good results while reading images from disk.
>
> I tried extracting two slices from two volumes and used the code given
> in DeformableRegistration4 to register them but it gives the following
> error. All the parameter and initialization values are same as in example.
>
> If I save these two slices on disk and use the example, then it works.
>
> Initial Parameters =
> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, 0
> , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, 0,
> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, 0,
> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, 0
> , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
>
> Starting Registration
> F = 0.00143433, GNORM = 0
> *************************************************
> I NFN FUNC GNORM STEPLENGTH
> THE SEARCH DIRECTION IS NOT A DESCENT DIRECTIONIFLAG= -1. LINE SEARCH
> FAILED. SE
> E DOCUMENTATION OF ROUTINE MCSRCH ERROR RETURN OF LINE SEARCH: INFO=0
> POSSIBLE
> CAUSES: FUNCTION OR GRADIENT ARE INCORRECT OR INCORRECT
> TOLERANCESvnl_lbfgs: **
> EEEK **
> ExceptionObject caught !
>
> itk::ExceptionObject (0137F814)
> Location: "unknown"
> File: \itksrc\Code\Numerics\itkLBFGSOpt
> imizer.cxx
> Line: 265
> Description: itk::ERROR: LBFGSOptimizer(01905DD0): Error occured in
> optimization
>
> In VS 6.0, I used quick watch and it showed that in fixed and moving
> images, the m_Direction field was different for both images, one was [(1
> , 0),(1,0)] the other was [(1,0),(0,1)]. To resolve this problem I
> created two empty images and copied data from previous ones using
> iterators, but still same error.
>
> Matt
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list