<div class="gmail_quote">On Mon, Jul 6, 2009 at 8:46 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><div class="gmail_quote"><div class="im">On Mon, Jul 6, 2009 at 7:29 AM, Thomas Hack <span dir="ltr">&lt;<a href="mailto:hack@bonn.edu" target="_blank">hack@bonn.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">

Hi!<br>
<br>
I&#39;ve got a question concerning vtkProcrustesAlignmentFilter (vtkPAF). I want to use it for two sets of landmarks (same number of landmarks and same sequence). I want to register them into the same coordinatesystem using a rigid body transformation. My question now is, how do i get the correspondig transformation matrix? GetLandmarkTransform() gives me a very strange martix, which does for sure not the right transformation. The result of the vtkPAF looks correct to me, but i need the transformation matrix, because i want to register two volumes on base of the landmarks.<br>


<br>
Does anyone has an idea?<br>
Thanks,<br>
<br>
Tom<br>
</blockquote></div><div><br>I don&#39;t see the difference between vtkPAF and vtkLandmarkTransform from
reading the class descriptions, so I can&#39;t comment on vtkPAF, but I
have an example of a landmark transform here:<br>
<a href="http://www.vtk.org/Wiki/Landmark_Transform" target="_blank">http://www.vtk.org/Wiki/Landmark_Transform</a><br>
<br>
You can get the matrix with -&gt;GetMatrix() (it is type vtkMatrix4x4).
Maybe you could keep your existing code and try
GetLandmarkTransform()-&gt;GetMatrix() ? Otherwise it sounds like you
can just use a landmark transform by itself?<br>
<br clear="all">Thanks,<br><br>David <br></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br> vtkProcrustesAlignmentFilter takes an ensemble (potentially more than two) inputs and iteratively aligns them to the mean.  For what you want to do, try vtkLandmarkTransform.<div><br></div><div>
- Wes<br><br><br>-- <br>Wesley D. Turner, Ph.D.<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x120<br>
</div>