[Insight-users] ResampleImageFilter for itk::VectorImage?
Cory Quammen
cquammen at cs.unc.edu
Thu Jul 7 16:25:40 EDT 2011
On Thu, Jul 7, 2011 at 4:16 PM, David Doria <daviddoria at gmail.com> wrote:
> 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?)
It *should* still work with itk::Image<itk::Vector>.
> 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.
Blerg. Sorry, I don't have any ideas for this.
--
Cory Quammen
Research Associate
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen
More information about the Insight-users
mailing list