[Insight-users] exception using 2D bspline deformable registration

Luis Ibanez luis.ibanez at kitware.com
Fri Oct 1 15:00:52 EDT 2004


Hi Sachin,

Did you modified the code in any way before
applying it to your data ?

If so, please post to the list the *exact* .cxx
file that you used.

It seems that the problem is related to the optimizer
setting, and not to the number of parameters.

In particular we suspect of the lines: 265-269.

   optimizer->SetGradientConvergenceTolerance( 0.05 );
   optimizer->SetLineSearchAccuracy( 0.9 );
   optimizer->SetDefaultStepLength( 1.5 );

Since the error message is comming from the optimizer
and it is related to the convergence criteria.



   Thanks


     Luis



--------------------------
Sachin Jambawalikar wrote:

> Hi all,
> 
> I am using the example code DeformableRegistration4 to register   2D
> slices of dynamci contrast breast mri data  .
> 
> I get the following exception:
> 
> 
> ImageRegion (0033BF04)
>   Dimension: 2
>   Index: [0, 0]
>   Size: [512, 512]
> 
> 
> ImageRegion (0033DEA4)
>   Dimension: 2
>   Index: [0, 0]
>   Size: [512, 512]
> 
> 
> totalGridSize: [8, 8]
> spacing: [0.683594, 0.683594]
> origin: [-192.401, -149.008]
> numberOfParameters:128
> Intial 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 = 18707.5, GNORM = 198.347
> *************************************************
>    I   NFN    FUNC        GNORM       STEPLENGTH
> IFLAG= -1. LINE SEARCH FAILED. SEE DOCUMENTATION OF ROUTINE MCSRCH ERROR RETURN
>  OF LINE SEARCH: INFO=3 POSSIBLE CAUSES: FUNCTION OR GRADIENT ARE  INCORRECT OR
> INCORRECT TOLERANCESvnl_lbfgs: ** EEEK **
> ExceptionObject caught !
> 
> itk::ExceptionObject (00F2FB80)
> Location: "Unknown"
> File: g:\itk_vtk\itk\insighttoolkit-1.6.0\code\common\itkBSplineDeformableTransf
> orm.txx
> Line: 232
> Description: itk::ERROR: BSplineDeformableTransform(003337D0): Mismatched betwee
> n parameters size and region size
> 
> 
> 
> Am i doing something wrong
> 
> Regards
> --Sachin
> _______________________________________________
> 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