[vtkusers] Mesh from contours

Luis Ibanez luis.ibanez at kitware.com
Sun Oct 17 06:26:03 EDT 2010


Hi Jothy,


You may try the following:


1) From the RT polylines, create a rasterized binary
    images for every slice.

    In ITK this can be done with:

http://www.itk.org/Doxygen/html/classitk_1_1PolylineMask2DImageFilter.html


2) Smooth the resulting image with a
    Gaussian filter

http://www.itk.org/Doxygen/html/classitk_1_1SmoothingRecursiveGaussianImageFilter.html

    Note that you may want to use different values
    of Sigma for Z, and (X,Y).


3) Then extract an iso-surface from the resulting
    smoothed image.


4) At that point, if the mesh is too dense, you can
    decimate it with the

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/QuadricDecimation


If you plan on doing (4), then it will be convenient
to do (3) by converting the ITK image to a VTK
image, and then using the vtkContourFilter to
extract the surface.


       Regards,


                Luis


---------------------------------------------------------
On Tue, Oct 12, 2010 at 8:37 PM, Jothy <jothybasu at gmail.com> wrote:

> Hi all,
>
> I have a set of contours from RTSTRUCT file and I would like to create a
> high quality mesh from (like in ITK-SNAP).
>
> 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.
>
> 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.
>
> Any suggestions?
>
> Thank you
>
> Jothy
>
> --
> Research Scholar
> Dept. of Medical Physics
> Clatterbridge Centre for Oncology
> UK
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101017/fde4da60/attachment.htm>


More information about the vtkusers mailing list