<DIV>Hi Luis,</DIV>  <DIV>I think that I got the answer of my previous question which was&nbsp;:''In which part of the code iterativeclosestpoint2.cxx shall we make some changes to use ItkRigid3DPerspectiveTransform.h instead of ItkEuler3DTranform.h?''&nbsp; </DIV>  <DIV>Now I would like to check out with you if I get the right idea or not:</DIV>  <DIV>&nbsp;</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>&nbsp;</DIV>  <DIV>#include"ItkCenterTransformInitializer.h" <STRONG>I must add this header file</STRONG>.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Typedef itk::Rigid3DPerspectiveTransform.h&lt;double&gt;TransformType; <STRONG>instead of</STRONG> </DIV>  <DIV><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::Euler3DTransform&lt; </FONT><FONT color=#0000ff size=2>double</FONT><FONT size=2> &gt;
 TransformType;</DIV></FONT>  <DIV><FONT color=#800000 size=2></FONT>&nbsp;</DIV>  <DIV><FONT color=#800000 size=2><FONT color=#000000>type itk::CenteredTransformInitializer&lt;TransformType,</FONT></FONT></DIV>  <DIV><FONT color=#800000 size=2><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FixedPointsetType,</FONT></FONT></DIV>  <DIV><FONT color=#800000 size=2><FONT
 color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MovingPointsetType&gt;TransformInitializerType;</FONT></DIV></FONT>  <DIV><STRONG>I Must add the above line</STRONG></DIV>  <DIV><STRONG></STRONG>&nbsp;</DIV>  <DIV>TransformInitializerType::Pointer Initializer=TransformInitializerType::New(); </DIV>  <DIV><STRONG></STRONG>&nbsp;</DIV>  <DIV><STRONG>I must add&nbsp;the above&nbsp;line</STRONG></DIV>  <DIV><STRONG></STRONG>&nbsp;</DIV><FONT size=2>  <DIV>initializer-&gt;SetTransform( transform );</DIV>  <DIV>initializer-&gt;SetFixedpointSet( fixedPointSet-&gt;GetOutput() );</DIV>  <DIV>initializer-&gt;SetMovingImage( movingPointSet-&gt;GetOutput() );</DIV> 
 <DIV>initializer-&gt;GeometryOn();</DIV><FONT size=2>  <DIV>initializer-&gt;InitializeTransform();</DIV><FONT size=2>  <DIV>transform-&gt;SetAngle( 0.0 );</DIV><FONT size=2>  <DIV>registration-&gt;SetInitialTransformParameters( transform-&gt;GetParameters() );</DIV>  <DIV>&nbsp;</DIV>  <DIV><STRONG>I must add the above lines also</STRONG></DIV>  <DIV><STRONG></STRONG>&nbsp;</DIV>  <DIV>after that we&nbsp;<FONT color=#008000 size=2>&nbsp;<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>&nbsp;</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&nbsp;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>&nbsp;</DIV>  <DIV><BR><BR><B><I>Luis Ibanez &lt;luis.ibanez@kitware.com&gt;</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>&gt; Hi all users,<BR>&gt; I would like to know how can we calculate the rotation from versor?Are <BR>&gt; the three first parameter in the solution of Itarative closestpoint2,versor?<BR>&gt; the second question is related to 2D/3D point set registration.Can any <BR>&gt; body tell me in which part of the code of Itarativeclosestpoint2 shall I <BR>&gt; make some changes to convert it from 3D/3D pointset registration to <BR>&gt; 2D/3D pointset registration?<BR>&gt; thanks alot,<BR>&gt; Alireza<BR>&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Insight-users mailing list<BR>&gt; Insight-users@itk.org<BR>&gt; http://www.itk.org/mailman/listinfo/insight-users<BR></BLOCKQUOTE><BR><p>&#32;

<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>