[Insight-users] ImageRegistration4 example problems

Fernando Rannou rannou@mednet.ucla.edu
Fri, 14 Mar 2003 09:13:25 -0800


Hello Luis

Something is wrong with ImageRegistration4 example (Insight 1.2).
Here is the output:

$ ImageRegistration4 BrainT1SliceBorder20.png 
 BrainProtonDensitySliceShifted13x17y.png  junk.png
0   -0.497728   [-3.98581, -0.336661, 0]
1   -0.442616   [-7.91193, 0.42857, 0]
2   -0.421535   [-5.97582, -0.0729125, 0]
3   -0.44281   [-4.14183, -0.870721, 0]
4   -0.443689   [-4.88292, -2.72835, 0]
5   -0.413782   [-5.58482, -2.01609, 0]
6   -0.423873   [-6.05154, -1.13168, 0]
7   -0.431457   [-6.43308, -0.207324, 0]
8   -0.435543   [-7.37642, -0.539157, 0]
9   -0.427424   [-7.25227, -0.0548157, 0]
10   -0.423302   [-7.7102, 0.145922, 0]
11   -0.426716   [-7.46115, 0.167688, 0]
12   -0.428633   [-7.26913, 0.00760221, 0]
13   -0.424174   [-7.39149, 0.033136, 0]
14   -0.426957   [-7.32955, 0.0414921, 0]
15   -0.429356   [-7.34259, 0.0698952, 0]
16   -0.430093   [-7.327, 0.0687898, 0]
Result =
 Translation X = -7.327
 Translation Y = 0.0687898
 Iterations    = 18
 Metric value  = -0.430028
Aborted

Notice that the Translations are way off, but for some reason it ran 
only 16 iterations.
Also, after printing the Result, it aborts.

How can I set the convergence criterion?

Thanks
Fernando