<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:14pt"><DIV style="FONT-SIZE: 14pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 14pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>Hello;</DIV>
<DIV>1-I converted vtkpoly data to Itk mesh, <FONT color=#ff0000>How Can I test if converting process works correctly?</FONT></DIV>
<DIV><STRONG><FONT color=#800000>Here&nbsp; is the last part of the converting process</FONT></STRONG></DIV>
<DIV><FONT color=#008000 size=2>
<P>// then copy the normal triangles</P></FONT><FONT size=2>
<P>polygons-&gt;InitTraversal();</P>
<P></FONT><FONT color=#0000ff size=2>while</FONT><FONT size=2>( polygons-&gt;GetNextCell( numberOfCellPoints, cellPoints ) )</P>
<P>{</P>
<P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>( numberOfCellPoints !=3 ) </FONT><FONT color=#008000 size=2>// skip any non-triangle.</P></FONT><FONT size=2>
<P>{</P>
<P></FONT><FONT color=#0000ff size=2>continue</FONT><FONT size=2>;</P>
<P>}</P>
<P>MeshType::CellAutoPointer c;</P>
<P>TriangleCellType * t = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> TriangleCellType;</P>
<P>t-&gt;SetPointIds( (</FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2>*)cellPoints );</P>
<P>c.TakeOwnership( t );</P>
<P>mesh-&gt;SetCell( cellId, c );</P>
<P>cellId++;</P>
<P>}</P>
<P>&nbsp;</P>
<P><FONT size=3><STRONG>2- I made a registration application which is Pointset to image registration benefit from itkPointSetToImageRegistrationTest_1.cxx. I would like to display both data sets on one window,But I don't know how to use registration result and dispay two data sets overlapping. </STRONG></FONT></P>
<P><STRONG><FONT color=#800000 size=4>Here&nbsp; is the last part of the&nbsp; registration process</FONT></STRONG></P>
<P><STRONG><FONT color=#800000 size=4></FONT></STRONG>&nbsp;</P><FONT size=2>
<P>registrationMethod-&gt;SetMetric( metric );</P>
<P>registrationMethod-&gt;SetOptimizer( optimizer );</P>
<P>registrationMethod-&gt;SetTransform( transform );</P>
<P>registrationMethod-&gt;SetFixedPointSet(mesh.GetPointer());</P>
<P></FONT><FONT color=#008000 size=2>//registrationMethod-&gt;SetFixedPointSet(fixedPointSet);</P></FONT><FONT size=2>
<P>registrationMethod-&gt;SetMovingImage(rawreader-&gt;GetOutput());</P>
<P>registrationMethod-&gt;SetInterpolator(interpolator);</P>
<P></FONT><FONT color=#008000 size=2>//------------------------------------------------------------</P>
<P>// Set up transform parameters</P>
<P>//------------------------------------------------------------</P></FONT><FONT size=2>
<P>ParametersType parameters( transform-&gt;GetNumberOfParameters() );</P></FONT><FONT color=#008000 size=2>
<P>// initialize the offset/vector part</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2>( </FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> k = 0; k &lt;Dimension; k++ )</P>
<P>{</P>
<P>parameters[k]= 0.0f;</P>
<P>}</P></FONT><FONT color=#0000ff size=2>
<P>try</FONT><FONT size=2> </P>
<P>{</P>
<P>registrationMethod-&gt;StartRegistration();</P>
<P>}</P>
<P></FONT><FONT color=#0000ff size=2>catch</FONT><FONT size=2>( itk::ExceptionObject &amp; e )</P>
<P>{</P>
<P>std::cout &lt;&lt; e &lt;&lt; std::endl;</P>
<P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> EXIT_FAILURE;</P>
<P>}</P>
<P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> EXIT_SUCCESS;</P></FONT>
<P><STRONG><FONT color=#800000 size=4></FONT></STRONG>&nbsp;</P>
<P><STRONG><FONT color=#800000 size=4></FONT></STRONG>&nbsp;</P>
<P><STRONG><FONT color=#c00000 size=4>I am looking forward to your answer,I really need them,</FONT></STRONG></P>
<P><STRONG><FONT color=#c00000 size=4>Thanks in advance</FONT></STRONG></P>
<P><STRONG><FONT color=#c00000 size=4>Tony</FONT></STRONG>&nbsp;</P></FONT></DIV></DIV></DIV></DIV></div><br>

<hr size=1>It's here! Your new message!<br>Get
<a href="http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/"> new email alerts</a> with the free <a href="
http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/">Yahoo! Toolbar.</a></body></html>