<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 ;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I solved my problem ,please don't make sense this problem</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">thanks<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: tony hakki <tony2007vtk@yahoo.com><BR>To: insight-users@itk.org<BR>Sent: Friday, February 23, 2007 3:57:21 PM<BR>Subject: [Insight-users] SetFixedPointSet<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>Hi Dear ITK users;</DIV>
<DIV> </DIV>
<DIV>I would like to renew my problem. Briefly; I have <EM>mesh</EM> variable which is generated from a stl polydata . First I read my STL data with VTK then I converted it to itk mesh format to implement a pointsettoimageregistration. I would like to use that mesh as a fixedpointset. But I haven't accomplished it yet. I tried the following ways ,unfortunately I couldn't achieved ,If somebody suggest me a different way it will be really appreciated. Thank you very much</DIV>
<DIV>TOny</DIV>
<DIV>I tried 4 diffrent ways but :(</DIV>
<DIV><FONT color=#ff0000><STRONG>1-</STRONG></FONT><FONT color=#ff0000>registrationMethod->SetFixedPointSet(mesh);</FONT></DIV>
<DIV><STRONG><FONT color=#ff0000>2-</FONT></STRONG><FONT color=#0000ff size=2> </FONT><FONT size=3>typedef</FONT> PointSetType::PointsContainer PointsContainer;
<P>PointsContainer::Pointer pointsContainer = PointsContainer::New();</P>
<P>pointsContainer = mesh->GetPoints();</P>
<P> itk::PointSet<<FONT color=#0000ff>float</FONT>, 3>::Pointer pointSet = itk::PointSet<<FONT color=#0000ff>float</FONT><FONT size=2><FONT size=3>,3>::New();</FONT></P>
<P><FONT size=3>pointSet->SetPoints(pointsContainer);</FONT></P>
<P><FONT size=3> </FONT></P><FONT size=3>
<P><FONT color=#ff0000>registrationMethod->SetFixedPointSet(pointSet);</FONT></P>
<P><FONT color=#ff0000><STRONG>3-</STRONG></FONT><FONT color=#ff0000>registrationMethod->SetFixedPointSet(mesh->GetPoints())</FONT> </P>
<P><STRONG><FONT color=#ff0000>4</FONT></STRONG>-// Declare the type for PointsContainer</P>
<P>typedef MeshType::PointsContainer PointsContainerType;</P>
<P>// Declare the type for PointsContainerPointer</P>
<P>typedef MeshType::PointsContainerPointer PointsContainerPointer; </P>
<P></P>
<P>// Declare the type for Points</P>
<P>typedef<FONT size=2><FONT size=3> MeshType::PointType PointType;</FONT></P>
<P><FONT size=3>PointsContainerPointer points = mesh->GetPoints();</FONT></P>
<P><FONT color=#ff0000 size=3>registrationMethod->SetFixedPointSet(points);</FONT></P></FONT></FONT></FONT></DIV></DIV><BR>
<HR SIZE=1>
The fish are biting.<BR><A href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50" target=_blank rel=nofollow>Get more visitors</A> on your site using <A href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50" target=_blank rel=nofollow>Yahoo! Search Marketing.</A>
<DIV>_______________________________________________<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>Need a quick answer? Get one in minutes from people who know. Ask your question on
<a href="http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx">Yahoo! Answers</a>.</body></html>