[Insight-users] Re: WrapITK Python bindings

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Mon Jul 23 12:58:16 EDT 2007


Hi,

There is currently no way to do that with wrapitk, and really, I  
don't know how it can be implemented without:
  - modifying the swig included in cableswig
  - parsing the xml output of gccxml to get those info

I think vtk have this kind of feature - perhaps that's a good  
starting point?

Gaëtan


Le 23 juil. 07 à 17:48, Erik Anderson a écrit :

> jelle,
>    I have read the pdf many times, unfortunately. Basically, I need  
> a way to programmatically determine type information.  That is to  
> say if I do something like the following (this is essentially  
> pseudo-code as it does not exist in WrapITK):
>
> import itk
> filters = itk.filter_list()
> for f in filters:
>     methods = f.methods()
>     for m in methods:
>         inputs = m.inputs()
>         outputs = m.outputs()
>
> For ITK, the outputs would typically be itk.Image (I don't care all  
> that much about the template types)  but for a method like:
>
> void itkGradientMagnitudeRecursiveGaussianImageFilter.SetSigma 
> (float sigma);
>
> the following lists would be returned:
>
> inputs = [float]
> output = []
>
> While this can be gotten from the documentation, there seems to be  
> no way to access this type of information directly through Python.
>
> On Mon, 23 Jul 2007 15:40:37 +0000 (UTC)
>  jelle <jelleferinga at gmail.com> wrote:
>>>      This does not really answer my question at all.  Where in  
>>> the WrapITK source should I start thinking about including this  
>>> functionality?
>> Hi Erik,
>> I'm sorry I've misunderstood your question. Concerning the types,  
>> are you
>> referring to the image types [itk.Image.UC2 for example]? Have you  
>> read the
>> WrapITK .pdf? _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users

--
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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070723/8222cafc/PGP.pgp


More information about the Insight-users mailing list