[ITK] [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/community/attachments/20150402/8eeb7dd0/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list