<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">yes I am doing this for initializing the transform before registration. By the way at the end of the Pointsettoimageregistration&nbsp; i get finalparameters,shouldn't I calculate these parameters opposite,because these parameters belong to image ,i mean they indicates that how far image will transform and how far it will rotate. But I would like to apply these finalparameters to my pointset. For this reason I use TransformMeshFilter.&nbsp; When I get the inverse of the final transform (&nbsp; <FONT size=2><STRONG>finalTransform2-&gt;GetInverse(finalTransform2);</STRONG></FONT>)the new &nbsp;translation parameters&nbsp; are calculated,but rotation parameters not renew? If I&nbsp; am right,is there a way to find the opposite rotation
 patameters. </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT color=#0000ff size=2>
<P><FONT size=3>typedef</FONT></FONT><FONT size=2><FONT size=3> itk::TransformMeshFilter&lt;</FONT></P>
<P><FONT size=3>FMeshType,</FONT></P>
<P><FONT size=3>FMeshType,</FONT></P>
<P><FONT size=3>TransformType &gt; FilterType;</FONT></P>
<P><FONT size=3>&nbsp;</FONT></P>
<P><FONT size=3></FONT></P>
<P><FONT size=3>FilterType::Pointer filter = FilterType::New();</FONT></P>
<P><FONT size=3></FONT></P>
<P><FONT size=3>filter-&gt;SetInput( outputMesh); </FONT></P>
<P><FONT size=3>filter-&gt;SetTransform(finalTransform ); </FONT></P>
<P><FONT size=3>filter-&gt;Update();</FONT></P>
<P><FONT size=3>FMeshType::Pointer outputMesh2 = filter-&gt;GetOutput();</FONT></P></FONT><FONT size=2></DIV>
<P style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</P></FONT>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Luis Ibanez &lt;luis.ibanez@kitware.com&gt;<BR>To: tony hakki &lt;tony2007vtk@yahoo.com&gt;<BR>Cc: insight-users@itk.org<BR>Sent: Saturday, March 31, 2007 7:33:28 PM<BR>Subject: Re: [Insight-users] QuaternionRigidTransform SetRotation<BR><BR>
<DIV>Hi Tony,<BR><BR>Are you doing this for Initializing the transform<BR>before starting the registration process ?<BR><BR><BR>Please look at the documentation of this class:<BR><A href="http://www.itk.org/Insight/Doxygen/html/classitk_1_1QuaternionRigidTransform.html" target=_blank>http://www.itk.org/Insight/Doxygen/html/classitk_1_1QuaternionRigidTransform.html</A><BR><BR>You can call the SetRotationMatrix() method.<BR><BR><BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;Regards,<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<BR><BR><BR><BR>--------------------<BR>tony hakki wrote:<BR>&gt; Hello;<BR>&gt; I am trying to implement pointsettoimageregistration and I use <BR>&gt; QuaternionRigidTransform class. How should I set the rotation of this <BR>&gt; transform?for example I set the translation like that&nbsp;&nbsp;<BR>&gt; *finalTransform-&gt;SetTranslation( centerMovingimage - centerFixedpointset <BR>&gt; );*&nbsp;&nbsp;translation works fine ,but i also have to set
 rotation&nbsp;&nbsp;. how can <BR>&gt; I calculate the rotation matrix? I hope somebody will help me.<BR>&gt; Thank you very but very much<BR>&gt; Tony<BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Insight-users mailing list<BR>&gt; Insight-users@itk.org<BR>&gt; <A href="http://www.itk.org/mailman/listinfo/insight-users" target=_blank>http://www.itk.org/mailman/listinfo/insight-users</A></DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>

<hr size=1><a href="http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/">Never miss an email again!<br>Yahoo! Toolbar</a> alerts you the instant new Mail arrives.<a href="
http://us.rd.yahoo.com/evt=49937/*http://tools.search.yahoo.com/toolbar/features/mail/"> Check it out.</a></body></html>