[Insight-users] Using ITK in combination with vtkImageData

karmonik karmonik@bcm.tmc.edu
Thu, 6 Feb 2003 15:03:29 -0600


Hi there,

I would like to use the itk::VTKImageImport and itk::VTKImageExport templates 
in connection with a vtkImageData object.

>From the software guide I understand I have to use vtkImageExport to export 
the info of my vtkImageData object and interface with itk::VTKImageImport. 
This would allow me to interface itk with the vtk pipeline.

However, the documentation does not seem to be suffcient for me to get it to 
work. I do not know what member functions to use and what pointer to pass as 
arguments.

I was therefore wondering if someone could draft a C++ code snippet as an 
example how to use vtkImageExport with itk::VTKImageImport and 
itk::VTKImageExport with vtkImageImport.

Thanks a lot in advance !!

Christof

Christof Karmonik, PhD
Baylor College of Medicine/The Methodist Hospital
Mailstation M217
6565 Fannin
Houston, TX 77030
Pager: (713) 708-2232
Fax: (713) 790-4688