[Insight-users] OutputType of itkVectorInterpolateImageFunction

Corinne Mattmann mattmaco at ee.ethz.ch
Thu, 29 Jan 2004 11:25:07 -0700


Hi,

I would like to warp a vector image instead of a scalar image
(WarpImageFilter is not working because of the interpolator used inside
the filter). As there is no warp filter for vector images (as far as I
know) I made a copy of the WarpImageFilter and substituted the
InterpolateImageFunction with the VectorInterpolateImageFunction and the
LinearInterpolateImageFunction with the
VectorLinearInterpolateImageFunction. But now I get a compile error
telling me that at line 206 in my copied WarpImageFilter
(PixelType value = static_cast<PixelType>(m_Interpolator->Evaluate(
point ));)
it cannot convert from 'class itk::FixedArray<double,3>' to 'class
itk::Vector<double,3>'.
Why does the VectorInterpolateImageFunction not return a value identical
to my input image PixelType (Vector<double,3>)?

Thanks,
Corinne