[Insight-users] ResampleImageFilter for itk::VectorImage?

David Doria daviddoria at gmail.com
Thu Jul 7 16:16:40 EDT 2011


On Thu, Jul 7, 2011 at 3:59 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
> How about replacing line 161 itkVectorResampleImageFilter.txx with
>
> const unsigned int numberOfComponents =
> inputPtr->GetNumberOfComponentsPerPixel();

Yep, that fixes the one problem (but then it won't work for
itk::Image<itk::Vector> anymore, right?)

But the remaining problem is in VectorInterpolateImageFunction there is this:

  itkStaticConstMacro(Dimension, unsigned int,
                      TInputImage::PixelType::Dimension);

and TInputImage::PixelType::Dimension isn't defined for itk::VectorImage.

David


More information about the Insight-users mailing list