<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>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 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->InitTraversal();</P>
<P></FONT><FONT color=#0000ff size=2>while</FONT><FONT size=2>( polygons->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->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->SetCell( cellId, c );</P>
<P>cellId++;</P>
<P>}</P>
<P> </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 is the last part of the registration process</FONT></STRONG></P>
<P><STRONG><FONT color=#800000 size=4></FONT></STRONG> </P><FONT size=2>
<P>registrationMethod->SetMetric( metric );</P>
<P>registrationMethod->SetOptimizer( optimizer );</P>
<P>registrationMethod->SetTransform( transform );</P>
<P>registrationMethod->SetFixedPointSet(mesh.GetPointer());</P>
<P></FONT><FONT color=#008000 size=2>//registrationMethod->SetFixedPointSet(fixedPointSet);</P></FONT><FONT size=2>
<P>registrationMethod->SetMovingImage(rawreader->GetOutput());</P>
<P>registrationMethod->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->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 <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->StartRegistration();</P>
<P>}</P>
<P></FONT><FONT color=#0000ff size=2>catch</FONT><FONT size=2>( itk::ExceptionObject & e )</P>
<P>{</P>
<P>std::cout << e << 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> </P>
<P><STRONG><FONT color=#800000 size=4></FONT></STRONG> </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> </P></FONT></DIV></div><br>
<hr size=1>Finding fabulous fares is fun.<br><a href="http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--
">Let Yahoo! FareChase search your favorite travel sites</a> to find flight and hotel bargains.</body></html>