[Insight-users] Error passing NthElementImageAdaptor as an argument

David Doria daviddoria at gmail.com
Sun Dec 5 13:54:36 EST 2010


I am trying to pass a itkNthElementImageAdaptor to a filter:

http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/ProcessingNthImageElement

to blur the image of the 0th components of the input image, but the
compiler complains:

25: error: no matching function for call to
‘itk::BinomialBlurImageFilter<itk::Image<float, 2u>, itk::Image<float,
2u> >::SetInput(itk::SmartPointer<itk::NthElementImageAdaptor<itk::Image<itk::CovariantVector<float,
3u>, 2u>, float> >&)’

The way I understand image adaptors, they are used exactly like an
image. Is this not correct? How would you pass this extracted image to
the next filter?

David


More information about the Insight-users mailing list