[Insight-users] Help in understanding how to connect ITK and VTK

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Mar 7 11:17:52 EST 2006


Kalle,

I'm not sure what is the best solution in your case, however, if you want  
to use itk classes directly from python, you should use WrapITK.
WrapITK will let you:
- choose the types you want to build
- easily select types in your python program
- easily connect itk to vtk - it's exactely the same interface than in c++
- easily extend itk with some custom classes - that's the case of the  
itk-vtk glue code
- ...

WrapITK is available at

   http://voxel.jouy.inra.fr/darcs/contrib-itk/WrapITK/WrapITK.tar.gz

or directly with darcs (http://www.darcs.net)

   darcs get --partial http://voxel.jouy.inra.fr/darcs/contrib-itk/WrapITK/


Are you working on BioImageXD ?

Gaetan


On Tue, 07 Mar 2006 16:52:52 +0100, Kalle Pahajoki <kalpaha at st.jyu.fi>  
wrote:

> Hi
>
> I'm developing a software for the visualization and processing of 3D  
> microscopy datasets and have so far used python and VTK extended with my  
> own classes. I now wish to utilize ITK for some features in the  
> software, and would be very happy if someone could clarify conceptually,  
> how the linking of ITK and VTK is done, and in particular, what would be  
> the best way for me to do it.
>
> I was thinking I wouldn't use the python wrappings of ITK, but instead  
> develop all the ITK code needed in C++ and then develop custom VTK  
> classes to interface the code to python, like this:
>
> My own ITK code in C++ <---> Connect to my own interface classes on the  
> VTK side <---> My python code
>
> Should I just use the Python wrappings instead? If I mostly process  
> 8-bit unsigned char or 16-bit unsigned short data, are the wrapped  
> python classes enough?
>
> If I use ITK as detailed above, how should I go about it? Probably  
> create a CMake project of my own, but how does that connect to VTK then?  
> The problem here is that I compile the custom classes I develop as a  
> part of the VTK source tree. How do I link the CMake project to the VTK  
> classes during the VTK compilation?
>
> Any tips or pointers to relevant reading are greatly appreciated.
>
> Kalle
>



-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr


More information about the Insight-users mailing list