Charlotte:<br>
<br>On 12/4/07, <b class="gmail_sendername">Charlotte Curtis</b> <<a href="mailto:curtisc@uoguelph.ca">curtisc@uoguelph.ca</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am attempting to register two CT scans, and I'm having a bit of trouble with (I think) the optimizer parameters. I'm basically just combining the examples IterativeClosestPoint2.cxx and ImageRegistration8.cxx, and then using the result to transform a segmentation. If I use only the landmark transformation from IterativeClosestPoint, my result is pretty good, but I'd just like to refine it a *little* bit more with the registration from ImageRegistration8.
</blockquote><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have also tried using the LandmarkBasedTransformInitializer, but the result was not nearly as good as the IterativeClosestPoint.
</blockquote><div><br>I'd disagree with this. LandmarkBasedTransformInitializer should find the *optimal* rigid transfrom in your case. The two algorithms differ in their assumptions but aim to minimize the same metric.
<br><br>ICP: Minimizes the Least Square distance between two point sets. It relieves you of the responsibility of knowing the correspondance between the point sets.<br><br>LandmarkBasedTransformInitializer: Finds the *Optimal* rigid transform that minimizes the Least Square distance between the two point sets. It requires you to specify the correspondance between the two point sets. The number of points in the two sets are the same. (Please see: Berthold K. P. Horn (1987), "Closed-form solution of absolute orientation using unit quaternions,")
<br></div><br>Since your point sets are *Landmarks* or fiducials, I assume that you know the correspondance between them. So for a rigid transform, the LandmarkBasedTransformInitializer should always be better. (unless your landmarks are erroneous).
<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">...<br>I have played with a variety of settings for the rotation scale, translation scale, min/max steps, number of iterations, etc, but I haven't been able to hit on the right combination. Am I on the right track, or does my method have a serious flaw that cannot be fixed by parameter variation? Unfortunately, I can't upload my images as they are quite large, but I have attached my source code. Any suggestion is appreciated, thank you,
</blockquote><div><br>:)<br><br>Visualizing your metric might give you some insight. <br><br>Use the itk::ExhaustiveOptimizer. In reality, this isn't an optimizer at all :)<br><br>What this does is, it iterates over all possible translations in 3D space. (You'll have to do the rotations on your own). Observe the IterationEvent and write your metric values out into an image, where each of the axes represents a translation. Then fire it up the resulting metric image in Paraview (
<a href="http://www.paraview.org">www.paraview.org</a>) and either throw contours or use the Cut to visualize minimas and driving gradients in your metric space.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span class="sg">Charlotte<br>
</span><br>_______________________________________________<br>Insight-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">
http://www.itk.org/mailman/listinfo/insight-users</a><br><br><br clear="all"></blockquote></div><br><br clear="all"><br>-- <br>Karthik Krishnan<br>R&D Engineer,<br>Kitware Inc.<br>Ph: 518 371 3971 x119<br>Fax: 518 371 3971