[ITK-users] SimpleITK FFTConvolution
Gaetan Lehmann
gaetan.lehmann at gmail.com
Thu Apr 2 09:47:25 EDT 2015
Hi Brad,
I'm trying to use SimpleITK's FFTConvolution from python:
import SimpleITK as sitk
img = sitk.ReadImage("/tmp/cthead1.png")
kernel = sitk.ReadImage("/tmp/kernel2.png")
conv = sitk.FFTConvolution(img, kernel)
the last line fails with the error:
Traceback (most recent call last):
File "/tmp/test.py", line 5, in <module>
conv = sitk.FFTConvolution(img, kernel)
File
"/Users/glehmann/Library/Python/2.7/lib/python/site-packages/SimpleITK/SimpleITK.py",
line 17771, in FFTConvolution
return _SimpleITK.FFTConvolution(*args, **kwargs)
RuntimeError: Exception thrown in SimpleITK FFTConvolution:
/scratch/dashboards/SimpleITK-OSX10.7-intel-pkg/SimpleITK/Code/Common/include/sitkMemberFunctionFactory.hxx:193:
sitk::ERROR: Pixel type: vector of 8-bit unsigned integer is not supported
in 2D byN3itk6simple25FFTConvolutionImageFilterE
I get the same error when building from source and when installing
SimpleITK with
pip install --user SimpleITK
This is on a mac running yosemite.
Would you have an idea of what is wrong?
Thanks,
Gaëtan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150402/8eeb7dd0/attachment.html>
More information about the Insight-users
mailing list