[Insight-users] WrapITK python bindings and
GradientAnisotropicDiffusion with 3D float input
Kalle Pahajoki
kalpaha at st.jyu.fi
Tue Apr 18 08:35:16 EDT 2006
Hi
I'm using the WrapITK python bindings for ITK and am currently trying to
do very basic Watershed segmentation.
My setup is part of a larger program so I've distilled the problem to a
simple script (attached), but basically I'm reading 3D data on VTK side,
then switching it over to ITK for watershed segmentation.
The error message I get is:
Traceback (most recent call last):
File "test_itk.py", line 24, in ?
diff.SetInput(vtktoitk.GetOutput())
File
"/usr/local/Python-SWIG/itkGradientAnisotropicDiffusionImageFilter.py",
line 334, in SetInput
def SetInput(*args): return
_itkGradientAnisotropicDiffusionImageFilter.itkGradientAnisotropicDiffusionImageFilterIF3IF3_Pointer_SetInput(*args)
TypeError: No matching function for overloaded
'itkGradientAnisotropicDiffusionImageFilterIF3IF3_Pointer_SetInput'
Here's what I'm wrapping:
WRAP_ITK_DIMS:STRING=2;3
WRAP_ITK_JAVA:BOOL=OFF
WRAP_ITK_PYTHON:BOOL=ON
WRAP_ITK_TCL:BOOL=OFF
WRAP_covariant_vector_double:BOOL=OFF
WRAP_covariant_vector_float:BOOL=ON
WRAP_double:BOOL=OFF
WRAP_float:BOOL=ON
WRAP_rgb_unsigned_char:BOOL=ON
WRAP_rgb_unsigned_short:BOOL=OFF
WRAP_signed_char:BOOL=OFF
WRAP_signed_long:BOOL=OFF
WRAP_signed_short:BOOL=OFF
WRAP_unsigned_char:BOOL=ON
WRAP_unsigned_long:BOOL=OFF
WRAP_unsigned_short:BOOL=ON
WRAP_vector_double:BOOL=OFF
WRAP_vector_float:BOOL=ON
WRAP_rgb_unsigned_short-MODIFIED:INTERNAL=1
WRAP_unsigned_short-MODIFIED:INTERNAL=1
Any suggestions?
Kalle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_itk.py
Type: text/x-python
Size: 883 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20060418/63dcfbb3/test_itk.py
More information about the Insight-users
mailing list