[Insight-users] Re: WrapITK Python bindings
Erik Anderson
eranders at sci.utah.edu
Mon Jul 23 13:08:02 EDT 2007
VTK definitely does have this feature included in it. I
was hoping that this would be a relatively easy thing to
include in WrapITK, but I'm beginning tho think I was
wrong.
Erik
On Mon, 23 Jul 2007 18:58:16 +0200
Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
>
> 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
>
>
>
More information about the Insight-users
mailing list