<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">Hello Luis;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I implemented your suggestion about how to obtain pointset. to test my pointset I implemented pointsettopointsetregistration and it worked perfect,but when i have tried to implement pointsettoimageregistration&nbsp;with <FONT size=2>
<P><STRONG>APPROPRIATE</STRONG>&nbsp; parametres (optimizer,registration method e.t) </FONT>i have used same pointset with a 3D image( which is .raw extension)</P></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">my pointsettoimageregistration process has processed 4 minutes then gives a break or continue error,and a new code page appears which name is vector and it shows :</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">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT size=2>
<P>const_iterator begin() </FONT><FONT color=#0000ff size=2>const</P></FONT><FONT size=2>
<P>{ </FONT><FONT color=#008000 size=2>// return iterator for beginning of nonmutable sequence</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> (const_iterator(_Myfirst, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>));//<FONT color=#ff0000 size=5>it shows here</FONT></P>
<P>}</P></FONT></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">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">This seems so strange for me ,what might the reason of that?<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: Wednesday, April 11, 2007 6:58:16 PM<BR>Subject: Re: [Insight-users] Versor problem<BR><BR>
<DIV>Hi Tony,<BR><BR><BR>Your code looks fine.<BR>There is just a redundant piece:<BR><BR><BR><BR>If you already did:<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; pointSet-&gt;SetPoints( input_mesh-&gt;GetPoints() );<BR><BR><BR>then there is no need to add a for loop that copies<BR>every point again:<BR><BR>&nbsp;&nbsp; while()<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp; ...<BR>&nbsp;&nbsp; pointSet-&gt;SetPoint( pointId, p );// advance to next point<BR>&nbsp;&nbsp; ...<BR>&nbsp;&nbsp; }<BR><BR><BR>You can get rid of the while loop entirely.<BR><BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; Regards,<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luis<BR><BR><BR><BR>---------------------<BR>tony hakki wrote:<BR>&gt; Dear Luis;<BR>&gt; I convert my STL data to itk pointset like that:first I read it with VTK <BR>&gt; ,then i converted vtk polydata to itk mesh and lastly i converted itk <BR>&gt; mesh to itk pointset with the following code?Is that code incorrect? Is <BR>&gt; there an easier way to
 convert vtkpolydata to itkpointset?<BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt; const unsigned int Dimension = 3;<BR>&gt; <BR>&gt; typedef unsigned short PixelType;<BR>&gt; <BR>&gt; typedef itk::PointSet&lt; float, Dimension &gt; FixedPointSetType;<BR>&gt; <BR>&gt; typedef itk::Image&lt; PixelType, Dimension &gt; MovingImageType;<BR>&gt; <BR>&gt; typedef FixedPointSetType::PointsContainer PointsContainer;<BR>&gt; <BR>&gt; PointsContainer::Pointer pointsContainer = PointsContainer::New();<BR>&gt; <BR>&gt; pointsContainer = input_mesh-&gt;GetPoints();<BR>&gt; <BR>&gt; itk::PointSet&lt;float, 3&gt;::Pointer pointSet = itk::PointSet&lt;float,3&gt;::New();<BR>&gt; <BR>&gt; pointSet-&gt;SetPoints(pointsContainer);<BR>&gt; <BR>&gt; unsigned long pointId = 0;<BR>&gt; <BR>&gt; typedef FMeshType::PointsContainer::Iterator PointsIterator;<BR>&gt; <BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt; PointsIterator pointIterator = input_mesh-&gt;GetPoints()-&gt;Begin();<BR>&gt; <BR>&gt; PointsIterator end =
 input_mesh-&gt;GetPoints()-&gt;End();<BR>&gt; <BR>&gt; while( pointIterator != end )<BR>&gt; <BR>&gt; {<BR>&gt; <BR>&gt; FMeshType::PointType p = pointIterator.Value(); // access the point<BR>&gt; <BR>&gt; std::cout &lt;&lt; p &lt;&lt; std::endl; // print the point<BR>&gt; <BR>&gt; pointSet-&gt;SetPoint( pointId, p );// advance to next point<BR>&gt; <BR>&gt; pointSet-&gt;SetPointData( pointId, pointSet-&gt;GetBufferedRegion() );<BR>&gt; <BR>&gt; ++pointIterator;<BR>&gt; <BR>&gt; ++pointId;<BR>&gt; <BR>&gt; }<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; ----- Original Message ----<BR>&gt; From: Luis Ibanez &lt;luis.ibanez@kitware.com&gt;<BR>&gt; To: tony hakki &lt;tony2007vtk@yahoo.com&gt;<BR>&gt; Cc: insight-users@itk.org<BR>&gt; Sent: Sunday, April 8, 2007 12:01:48 AM<BR>&gt; Subject: Re: [Insight-users] Versor problem<BR>&gt; <BR>&gt; Hi Tony,<BR>&gt; <BR>&gt; <BR>&gt; 1) Are you using the TransformFileWriter class ?<BR>&gt; <BR>&gt; <A
 href="http://www.itk.org/Insight/Doxygen/html/classitk_1_1TransformFileWriter.html" target=_blank>http://www.itk.org/Insight/Doxygen/html/classitk_1_1TransformFileWriter.html</A><BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; 2) The code in your email is inconsistent.<BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You are declaring a QuaternionRigidTransform in the code,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; but the print out indicates that what you have in the file<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; is a VersorRigidTransform.<BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; The transform in the file *MUST* match the type<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; of the transform that you declare in the code.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; 3) The fact that your point set is stored in an STL file<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; is irrelevant for the purpose of the registration.<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; As we suggested in a previous email, you should use VTK<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; for reading the
 STL file, and then convert the points from<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; a vtkPolyData into an itkPointSet.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; 4) The fact that your image is stored in a .raw file is<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; also irrelevant for the purpose of the registration.<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; What matter is whether you are able to read the image file<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; into an itk Image.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; 5) Yes,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You can do PointSet to Image registration in ITK.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Regards,<BR>&gt; <BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; ---------------------<BR>&gt; tony hakki wrote:<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;Dear Luis;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; I set the Center like the following code. I think it is correct to set<BR>&gt;&nbsp;&nbsp;&gt; center. At the end
 of the registration I write the transform staffs to<BR>&gt;&nbsp;&nbsp;&gt; the a txt folder. In this folder center is seen [0,0,0],as if I hadn't<BR>&gt;&nbsp;&nbsp;&gt; set it. What might the problem?I apply finalparameters to the<BR>&gt;&nbsp;&nbsp;&gt; TransformMeshfilter as a input like&nbsp;&nbsp;that<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; transform-&gt;SetParameters( finalParameters );<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; filter-&gt;SetTransform(transform );<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; but The pointset goes far away from the image instead of the overlapping<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; If you like to see my whole code I can add it.<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; typedef itk::QuaternionRigidTransform&lt; double &gt;
 TransformType;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; TransformType::Pointer transform = TransformType::New();<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; TransformType::InputPointType centerFixed;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; centerFixed[0] = 15 ;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; centerFixed[1] =-20;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; centerFixed[2] =0;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; transform-&gt;SetCenter(centerFixed);<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;here is the Transform staff at the end of the registration : Also here<BR>&gt;&nbsp;&nbsp;&gt; the transformation and the versor variables are too small according to<BR>&gt;&nbsp;&nbsp;&gt; me?Is ITK capable to&nbsp;&nbsp;registrate STL Polydata(I convert it to ITK mesh<BR>&gt;&nbsp;&nbsp;&gt; then to a&nbsp;&nbsp;pointset) and .raw extension 3D
 image?<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; VersorRigid3DTransform (04D73558)<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; RTTI typeinfo:&nbsp;&nbsp; class itk::VersorRigid3DTransform&lt;double&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Reference Count: 4<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Modified Time: 1221<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Debug: Off<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Observers:<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; none<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Matrix:<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 0.999912 -0.00431884 0.0125821<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 0.00426851 0.999983 0.00402404<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; -0.0125992 -0.00396998 0.999913<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Offset: [1.00003, -0.73264, -1.39039]<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Center: [0, 0, 0]<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Translation: [1.00003,
 -0.73264, -1.39039]<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Inverse:<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 0.999912 0.00426851 -0.0125992<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; -0.00431884 0.999983 -0.00396998<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 0.0125821 0.00402404 0.999913<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Singular: 0<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Versor: [ -0.00199855, 0.00629548, 0.00214689, 0.999976 ]<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; ----- Original Message ----<BR>&gt;&nbsp;&nbsp;&gt; From: Luis Ibanez &lt;luis.ibanez@kitware.com&gt;<BR>&gt;&nbsp;&nbsp;&gt; To: tony hakki &lt;tony2007vtk@yahoo.com&gt;<BR>&gt;&nbsp;&nbsp;&gt; Cc: insight-users@itk.org<BR>&gt;&nbsp;&nbsp;&gt; Sent: Friday, April 6, 2007 4:15:48 PM<BR>&gt;&nbsp;&nbsp;&gt; Subject: Re: [Insight-users] Versor problem<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; Hi
 Tony,<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; 1) The center of the Transform should be set to the Center of the<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Fixed object. In your case, that will be the Fixed Point Set.<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; 2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FORGET EULER ANGLES !!<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; They are a *BAD* representation of 3D rotations<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Versors ARE NOT EULER
 ANGLES<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Versors are unit Quaternions<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The methods SetRotationAroundX,Y,Z, *ARE NOT* cumulative.<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The rotation that you set with SetRotationAroundY is<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; overriding the rotation that you set around X previously.<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The correct way of setting a versor is via an Axis and an Angle.<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You should provide the three components (x,y,z) of the axis<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; of rotation, as a unit
 vector.&nbsp;&nbsp;And you should provide the<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; angle of rotation in radians. Note that the component of the<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; axis *ARE NOT* the Euler angles either.<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; Please read the tutorial on Quaternions:<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <A href="http://www.itk.org/CourseWare/Training/QuaternionsI.pdf" target=_blank>http://www.itk.org/CourseWare/Training/QuaternionsI.pdf</A><BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <A href="http://www.itk.org/CourseWare/Training/QuaternionsII.pdf" target=_blank>http://www.itk.org/CourseWare/Training/QuaternionsII.pdf</A><BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; and the description of Versors in the Wikipedia:<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <A href="http://en.wikipedia.org/wiki/Versor" target=_blank>http://en.wikipedia.org/wiki/Versor</A><BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; The four components of a Quaternion correspond to:<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; q0 = Ax * sin( T / 2 )<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; q0 = Ay * sin( T / 2 )<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; q0 = Az * sin( T / 2 )<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; q0 =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cos( T / 2 )<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; where (Ax,Ay,Az) are the components of the axis<BR>&gt;&nbsp;&nbsp;&gt; of rotation and T is the angle of rotation.<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
 Regards,<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luis<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; ------------------------<BR>&gt;&nbsp;&nbsp;&gt; tony hakki wrote:<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; hello;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; I have 2 questions:<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;1- When we implement pointSetToImageRegistration Should we Set the<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; center of transform like SetTransform(Center) ,if yes which data's<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; center should it be,PointSet center or image center?<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; 2- I use VersorRigid3DTransform,and I want to set Versor by my <BR>&gt; self and<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; see the effect of Versor. But I set the versor type like the
 following<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; then I get the transform parameters to confirm the versor variables it<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; says that *versor[0,&nbsp;&nbsp;&nbsp;&nbsp;0,&nbsp;&nbsp;&nbsp;&nbsp;-0.26745,&nbsp;&nbsp; 0.963572]&nbsp;&nbsp;Why do the versor<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; variables not&nbsp;&nbsp; same what I set at the beginning?and What does the<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; fourth one(&nbsp;&nbsp;0.963572) indicate?*<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; **<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; **<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; *TransformType::VersorType versor;*<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; *versor.SetRotationAroundX( 0.276538 );*<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; *versor.SetRotationAroundY(
 1.595315);*<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; *versor.SetRotationAroundZ( -0.5414906);*<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; *transform-&gt;SetRotation( versor );*<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; Expecting? Get great news right away with email Auto-Check.<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; <BR>&gt; &lt;<A href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html" target=_blank>http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html</A>&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; Try the Yahoo! Mail
 Beta.<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; <BR>&gt; &lt;<A href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html" target=_blank>http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html</A>&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; _______________________________________________<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; Insight-users mailing list<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; Insight-users@itk.org<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&gt; <A href="http://www.itk.org/mailman/listinfo/insight-users"
 target=_blank>http://www.itk.org/mailman/listinfo/insight-users</A><BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; ------------------------------------------------------------------------<BR>&gt;&nbsp;&nbsp;&gt; The fish are biting.<BR>&gt;&nbsp;&nbsp;&gt; Get more visitors<BR>&gt;&nbsp;&nbsp;&gt; <BR>&gt; &lt;<A href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50" target=_blank>http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50</A> <BR>&gt; &lt;<A href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50"
 target=_blank>http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50</A>&gt;&gt; <BR>&gt; <BR>&gt;&nbsp;&nbsp;&gt; on your site using Yahoo! Search Marketing. &lt;<BR>&gt;&nbsp;&nbsp;&gt; <BR>&gt; <A href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50" target=_blank>http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50</A> <BR>&gt; &lt;<A href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50"
 target=_blank>http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50</A>&gt;&gt;<BR>&gt; <BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; Need Mail bonding?<BR>&gt; Go to the Yahoo! Mail Q&amp;A <BR>&gt; &lt;<A href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&amp;sid=396546091" target=_blank>http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&amp;sid=396546091</A>&gt; <BR>&gt; for great tips from Yahoo! Answers <BR>&gt; &lt;<A href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&amp;sid=396546091"
 target=_blank>http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&amp;sid=396546091</A>&gt; <BR>&gt; users.</DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>
      <hr size=1>Expecting? Get great news right away with <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">email Auto-Check.</a><br>Try the <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">Yahoo! Mail Beta.</a></body></html>