[Insight-users] Usage of WarpVectorImageFilter
Greg Sharp
gregsharp.geo at yahoo.com
Sat Mar 19 12:39:25 EDT 2011
Hi,
Is it possible to warp a VectorImage with WarpVectorImageFilter
using a deformation field?
I try this:
typedef itk::WarpVectorImageFilter <
itk::VectorImage < unsigned char, 3 >, // Input image
itk::VectorImage < unsigned char, 3 >, // Output image
itk::Image < itk::Vector < float, 3 >, 3 > // Vector field
> WarpFilterType;
WarpFilterType::Pointer filter = WarpFilterType::New();
But it doesn't compile. This is ITK 3.20.0, linux, gcc 4.5.2.
Here is the compile error:
home/gsharp/build/src/InsightToolkit-3.20.0/Code/BasicFilters
/itkWarpVectorImageFilter.h:126:3:
error: ‘Dimension’ is not a member of
‘itk::WarpVectorImageFilter<itk::VectorImage<unsigned char, 3u>,
itk::VectorImage<unsigned char, 3u>, itk::Image<itk::Vector<float, 3u>,
3u> >::PixelType’
Is this a bug?
-Greg
More information about the Insight-users
mailing list