[Insight-users] Python and ITK

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Fri Jun 16 12:55:46 EDT 2006


Hi,

ITK tree is more complex than vtk tree, because ITK make an intensive use of 
c++ templates. Also, you have surely noticed that ITK's python module is 
poorly structured, and far from the quality of vtk's one. You'll not find 
method signature, but you can get the superclass of a class with __base__ (or 
__bases__) attribute.

Also, if you're interested in finding the elements in itk module (or even only 
using python wrappers), you should look at WrapITK - itk module is a lot more 
structured.

http://insight-journal.org/dspace/bitstream/1926/188/2/WrapITK_-_Enhanced_languages_support_for_the_Insight_Toolkit.pdf
http://voxel.jouy.inra.fr/darcs/contrib-itk/WrapITK/WrapITK.tar.gz

Gaetan



On Friday 16 June 2006 18:13, Erik Anderson wrote:
> Hi all,
>     I have finally gotten ITK wrapped with Python as described in
> numerous places in the documentation, and I have found that the wrapping
> is functional.  Unfortunately, it seems that the ITK wrappers are not
> really that close semantically to the same wrappers for VTK.  I'm trying
> to generate a class heirarchy for ITK by querying the various built-ins
> and variables in Python.  This works quite well in VTK providing me with
> a full class tree as well as a method signature for each method of every
> class (whether it is abstract or not).
>     Is there a way to get at the method signatures and the parent-class
> that each class inherits from?  For the VTK wrapping it is only a matter
> of parsing the built-ins formed during the wrapping process
> (__members__,  and then the __name__ for each method), but I have not
> found a similar way to do this for ITK.  If anyone has any clues how to
> get at this sort of info, it would be much appreciated.
>
> Thanks,
> Erik Anderson
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20060616/1b195947/attachment.pgp


More information about the Insight-users mailing list