[Insight-users] Error passing NthElementImageAdaptor as an argument

Matt McCormick matt at mmmccormick.com
Sun Dec 5 19:18:29 EST 2010


Hi David,

> 
> 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::Covaria
ntVector<float,
> 3u>, 2u>, float> >&)’

It can be easy to forget, but try templating the filter over the adaptor type 
instead of the image type.  I.e.,

typedef 
itk::BinomialBlurImageFilter<itk::NthElementImageAdaptor<itk::Image<itk::Covaria
ntVector<float, 3u>, 2u>, float> FilterType

Regards,
Matt



More information about the Insight-users mailing list