[Insight-users] NaryFunctorFilters don't work with Vector Images

Tom Vercauteren tom.vercauteren at m4x.org
Wed Nov 23 08:37:43 EST 2005


Hi all,

As opposed to what is said in the documentation of
itk::NaryAddImageFilter, it seems that it is not possible to use this
filter with vector images.

NaryFunctorFilter internally uses an itk::Array<InputImagePixelType>
to store the input pixels.

But itk::Array< itk::Vector<double,2> > cannot be instantiated.

Replacing the itk::Array<InputImagePixelType> by a
std::vector<InputImagePixelType> fixes the problem. I can send my
fixes if necessary.

I have filed a bug report (#2517) for this.

Best,
Tom Vercauteren


More information about the Insight-users mailing list