[Insight-users] Re: WrapITK Python bindings
Erik Anderson
eranders at sci.utah.edu
Mon Jul 23 11:48:12 EDT 2007
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
More information about the Insight-users
mailing list