[Insight-developers] itk and ipython interaction enhancement
Gaetan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Apr 12 07:33:05 EDT 2005
On Thu, 07 Apr 2005 20:17:07 +0200, Brad King <brad.king at kitware.com>
wrote:
> Gaetan Lehmann wrote:
>> I wrote a small module for python which give an easier access to itk
>> classes (file in attachement).
>> all classes are in itk module and are not prefixed with itk, template
>> types are attributes of the filter class, and methods of a filter is
>> avaible as attribute of the type.
>> For example itkRescaleIntensityImageFilterF2F2_New() is called with
>> itk.RescaleIntensityImageFilter.F2F2.New().
>> The main difference with InsightToolkit module is for completion with
>> ipython. When I heat <tab>, I can easily find the class I need. With
>> InsightToolkit module, it's really hard, because there is so much
>> attributes in the module.
>> Another interesting feature with this module, is to easily change
>> filter type in all the script. As we do in C++, we can "declare" types
>> which will be used by several filters :
>
> Cool! Please create a feature request in the bug tracker:
>
> http://www.itk.org/Bug
>
> Once it is created you can go back in and attach your module.
>
> Thanks,
> -Brad
>
I have done lots of cleanup, added doc in code, and created the feature
request : http://www.itk.org/Bug/bug.php?op=show&bugid=1766
I have also attached a modified version of MedianImageFilter.py which use
itk module.
Should I assign bug to you ?
Gaetan
--
Gaetan Lehmann <gaetan.lehmann at jouy.inra.fr>
Tel: +33 1 34 65 29 66
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
More information about the Insight-developers
mailing list