[Insight-users] ITK to VTK
Luis Ibanez
luis . ibanez at kitware . com
Mon, 22 Dec 2003 13:17:09 -0500
Hi Alam,
Instructions of how to connect ITK to VTK
are available in the Tutorial sessions.
http://www . itk . org/HTML/Tutorials . htm
In particular in the PDF presentation:
http://www . itk . org/CourseWare/Training/GettingStarted-II . pdf
You can convert ITK images to VTK format
by using the filters in:
InsightApplications/Auxiliary/vtk
Their files are
itkImageToVTKImageFilter.h
itkImageToVTKImageFilter.txx
itkVTKImageToImageFilter.h
itkVTKImageToImageFilter.txx
You can also convert itk::Mesh to vtkPolyData
by following the example in
vtk2itk.cxx
in the same directory.
If you want to convert an ITK image already
stored in a file, into a VTK image file,
you can simply use the example in
Insight/Examples/ImageReadWrite.cxx
and provide as input a ITK image file format
and as output a .vtk fileformat.
If you are using the CVS version of VTK,
you will also find that a new reader for
MetaImages is available now.
Please let us know if you have further questions,
Thanks
Luis
--------------------------------
Alam, Mohammed wrote:
>Hi
>
>I generated a 3D segmented object using ITK. Is there a tool in ITK to
>convert this 3D object to VTK object?
>
>Your reply will be highly appreciated.
>
>Thanks
>Alam
>
>
>
>