<br>Hi Jothy,<br><br><br>You may try the following:<br><br><br>1) From the RT polylines, create a rasterized binary<br>    images for every slice.<br><br>    In ITK this can be done with:<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1PolylineMask2DImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1PolylineMask2DImageFilter.html</a><br>
<br><br>2) Smooth the resulting image with a <br>    Gaussian filter<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1SmoothingRecursiveGaussianImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1SmoothingRecursiveGaussianImageFilter.html</a><br>
<br>    Note that you may want to use different values<br>    of Sigma for Z, and (X,Y).<br><br><br>3) Then extract an iso-surface from the resulting<br>    smoothed image.<br><br><br>4) At that point, if the mesh is too dense, you can<br>
    decimate it with the <br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/QuadricDecimation">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/QuadricDecimation</a><br><br><br>If you plan on doing (4), then it will be convenient<br>
to do (3) by converting the ITK image to a VTK<br>image, and then using the vtkContourFilter to<br>extract the surface.<br><br><br>       Regards,<br><br><br>                Luis<br><br><br>---------------------------------------------------------<br>
<div class="gmail_quote">On Tue, Oct 12, 2010 at 8:37 PM, Jothy <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Hi all,<br><br>I have a set of contours from RTSTRUCT file and I would like to create a high quality mesh from (like in ITK-SNAP).<br><br>I read the ROI data with vtkGDCMPolyDataReader and converted it into vtkPolydata for each ROI. I tried using vtkTriangleFilter, but the results are not satisfactory.<br>

<br>Is there any other class in vtk/ITK to generate godd quality meshes.I tried even vtkVoxelContoursToSurface but the it creates huge gap in between slices.<br><br>Any suggestions?<br><br>Thank you<br><br>Jothy<br clear="all">

<br>-- <br><div dir="ltr">Research Scholar<br>Dept. of Medical Physics<br>Clatterbridge Centre for Oncology<br>UK<br></div><br>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>