[Insight-developers] strange results with python wrapper
Gaetan Lehmann
gaetan.lehmann at jouy.inra.fr
Wed Apr 27 12:42:08 EDT 2005
On Wed, 27 Apr 2005 14:39:01 +0200, Brad King <brad.king at kitware.com>
wrote:
> Gaetan Lehmann wrote:
>>> Please try to reproduce the problem in a script that does not use
>>> your extra ITK module.
>> I have done the test without my module, and the result is the same
>> (sorry if it was not clear in previous message).
>
> Here is a portion of the code you posted:
>
> --------------------------------------------------------------------
> import itk
> from sys import argv
>
> # to clearly view that itk module (ie InsightToolkit in it) is really
> long to import :-(
> print 'modules loaded'
>
>
> def testFunction(inPType, subFilterClass) :
> dim = 2
> # inPType = 'US'
> outPType = 'UC'
> inType = (inPType, dim)
> outType = (outPType, dim)
>
> reader = itk.ImageFileReader[inType].New(argv[1])
> --------------------------------------------------------------------
>
> This clearely uses your module. Please post code that does not use the
> module yet produces the error.
>
you just need to ask it ! :-)
attached : the same script without my module (WhiteTopHat2.py), the file
used to wrap SubtractImageFilter (wrap_itkSubtractImageFilter.cxx), and
the same pipeline in c++ (myProject.cxx)
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WhiteTopHatFilter2.py
Type: application/octet-stream
Size: 1403 bytes
Desc: not available
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20050427/0a29be4c/WhiteTopHatFilter2.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap_itkSubtractImageFilter.cxx
Type: application/octet-stream
Size: 2480 bytes
Desc: not available
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20050427/0a29be4c/wrap_itkSubtractImageFilter.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myProject.cxx
Type: application/octet-stream
Size: 2456 bytes
Desc: not available
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20050427/0a29be4c/myProject.obj
More information about the Insight-developers
mailing list