[Insight-users] WrapITK
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Oct 24 14:24:44 EDT 2006
Hi,
Le Tue, 24 Oct 2006 18:56:38 +0200, Gheorghe Postelnicu
<gheorghe.postelnicu at gmail.com> a écrit:
> Hi,
>
> How can one, at any given time, figure out what classes were exported
> after building ITK with WrapITK ON (for Python, for instance)?
>
Try to run in python interpreter:
import itk
dir(itk)
and (for example):
itk.MedianImageFilter.keys()
And you should have a good idea about how to do that :-)
> Furthermore, if eager to get a new class available in Python, is there
> a tutorial somewhere on the files that would need to be modified on a
> local distribution in order to achieve this?
Do you want to add a new class already in ITK, or a custom one (WrapITK
supports both, but there is some slight differences) ?
It should be quite easy to add some new classes. There is a short example
in
http://voxel.jouy.inra.fr/darcs/contrib-itk/WrapITK/WrapITK_-_Enhanced_languages_support_for_the_Insight_Toolkit.pdf
. It should be enough in the simple cases; for the most complex one, you
will surely need some help, at least to begin - just ask on the list :-)
Gaetan
--
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