<DIV>Hi Luis,</DIV> <DIV>I think that I got the answer of my previous question which was :''In which part of the code iterativeclosestpoint2.cxx shall we make some changes to use ItkRigid3DPerspectiveTransform.h instead of ItkEuler3DTranform.h?'' </DIV> <DIV>Now I would like to check out with you if I get the right idea or not:</DIV> <DIV> </DIV> <DIV>#include"ItkRigid3DPerspectiveTransform.h" <STRONG>instead of</STRONG> <FONT color=#0000ff size=2>#include</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>"itkEuler3DTransform.h"</FONT></DIV> <DIV> </DIV> <DIV>#include"ItkCenterTransformInitializer.h" <STRONG>I must add this header file</STRONG>.</DIV> <DIV> </DIV> <DIV>Typedef itk::Rigid3DPerspectiveTransform.h<double>TransformType; <STRONG>instead of</STRONG> </DIV> <DIV><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::Euler3DTransform< </FONT><FONT color=#0000ff size=2>double</FONT><FONT size=2> >
TransformType;</DIV></FONT> <DIV><FONT color=#800000 size=2></FONT> </DIV> <DIV><FONT color=#800000 size=2><FONT color=#000000>type itk::CenteredTransformInitializer<TransformType,</FONT></FONT></DIV> <DIV><FONT color=#800000 size=2><FONT color=#000000> FixedPointsetType,</FONT></FONT></DIV> <DIV><FONT color=#800000 size=2><FONT
color=#000000> MovingPointsetType>TransformInitializerType;</FONT></DIV></FONT> <DIV><STRONG>I Must add the above line</STRONG></DIV> <DIV><STRONG></STRONG> </DIV> <DIV>TransformInitializerType::Pointer Initializer=TransformInitializerType::New(); </DIV> <DIV><STRONG></STRONG> </DIV> <DIV><STRONG>I must add the above line</STRONG></DIV> <DIV><STRONG></STRONG> </DIV><FONT size=2> <DIV>initializer->SetTransform( transform );</DIV> <DIV>initializer->SetFixedpointSet( fixedPointSet->GetOutput() );</DIV> <DIV>initializer->SetMovingImage( movingPointSet->GetOutput() );</DIV>
<DIV>initializer->GeometryOn();</DIV><FONT size=2> <DIV>initializer->InitializeTransform();</DIV><FONT size=2> <DIV>transform->SetAngle( 0.0 );</DIV><FONT size=2> <DIV>registration->SetInitialTransformParameters( transform->GetParameters() );</DIV> <DIV> </DIV> <DIV><STRONG>I must add the above lines also</STRONG></DIV> <DIV><STRONG></STRONG> </DIV> <DIV>after that we <FONT color=#008000 size=2> <FONT color=#000000>Scale the translation components of the Transform in the Optimizer in the same way that IterativeClosestPoint2.CXX do and than connect all the components require for registration.Are these the required changes for coverting ItkEuler3DTranform.h to ItkRigid3DPerspectiveTransform.h in the IterativePointset2.CXX?</FONT></FONT></DIV> <DIV><FONT color=#008000 size=2><FONT color=#000000></FONT></FONT> </DIV> <DIV><FONT color=#008000 size=2><FONT color=#000000>The second question is :If I gonna write the above
algorithm,Shall I make the changes on IterativeClosestPoint2.CXX or I have to launch a new project?if I have to launch a new project,how can I write the Cmake.list to build my project?</FONT></FONT></DIV> <DIV><FONT color=#008000 size=2><FONT color=#000000>Thank you very much for your useful help.</FONT></FONT></DIV> <DIV><FONT color=#008000 size=2><FONT color=#000000>Alireza</FONT></DIV></FONT></FONT></FONT></FONT></FONT> <DIV><STRONG></STRONG> </DIV> <DIV><BR><BR><B><I>Luis Ibanez <luis.ibanez@kitware.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Hi Alireza,<BR><BR>1) I assume that your collection of 2D points are the<BR>projections in a plane, of points that originally<BR>were in 3D. Is that right ?<BR><BR>2) If so, you can use as a transform
the:<BR>http://www.itk.org/Insight/Doxygen/html/classitk_1_1Rigid3DPerspectiveTransform.html<BR><BR><BR><BR>Regards,<BR><BR><BR>Luis<BR><BR><BR>-----------------------<BR>Alireza Salamy wrote:<BR>> Hi all users,<BR>> I would like to know how can we calculate the rotation from versor?Are <BR>> the three first parameter in the solution of Itarative closestpoint2,versor?<BR>> the second question is related to 2D/3D point set registration.Can any <BR>> body tell me in which part of the code of Itarativeclosestpoint2 shall I <BR>> make some changes to convert it from 3D/3D pointset registration to <BR>> 2D/3D pointset registration?<BR>> thanks alot,<BR>> Alireza<BR>> <BR>> <BR>> _______________________________________________<BR>> Insight-users mailing list<BR>> Insight-users@itk.org<BR>> http://www.itk.org/mailman/listinfo/insight-users<BR></BLOCKQUOTE><BR><p> 
<hr size=1>
Don't get soaked. Take a<a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news"> quick peek at the forecast </a><br> with the<a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news">Yahoo! Search weather shortcut.</a>