<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 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. When I get the inverse of the final transform ( <FONT size=2><STRONG>finalTransform2->GetInverse(finalTransform2);</STRONG></FONT>)the new translation parameters are calculated,but rotation parameters not renew? If I 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"> </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<</FONT></P>
<P><FONT size=3>FMeshType,</FONT></P>
<P><FONT size=3>FMeshType,</FONT></P>
<P><FONT size=3>TransformType > FilterType;</FONT></P>
<P><FONT size=3> </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->SetInput( outputMesh); </FONT></P>
<P><FONT size=3>filter->SetTransform(finalTransform ); </FONT></P>
<P><FONT size=3>filter->Update();</FONT></P>
<P><FONT size=3>FMeshType::Pointer outputMesh2 = filter->GetOutput();</FONT></P></FONT><FONT size=2></DIV>
<P style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </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 <luis.ibanez@kitware.com><BR>To: tony hakki <tony2007vtk@yahoo.com><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> Regards,<BR><BR><BR> Luis<BR><BR><BR><BR>--------------------<BR>tony hakki wrote:<BR>> Hello;<BR>> I am trying to implement pointsettoimageregistration and I use <BR>> QuaternionRigidTransform class. How should I set the rotation of this <BR>> transform?for example I set the translation like that <BR>> *finalTransform->SetTranslation( centerMovingimage - centerFixedpointset <BR>> );* translation works fine ,but i also have to set
rotation . how can <BR>> I calculate the rotation matrix? I hope somebody will help me.<BR>> Thank you very but very much<BR>> Tony<BR>> <BR>> ------------------------------------------------------------------------<BR>> <BR>> _______________________________________________<BR>> Insight-users mailing list<BR>> Insight-users@itk.org<BR>> <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>