[Insight-users] Usage of WarpVectorImageFilter
Greg Sharp
gregsharp.geo at yahoo.com
Sun Mar 20 13:14:30 EDT 2011
Karthik Krishnan <karthik.krishnan at ...> writes:
>
> Hi Greg:itk::WarpVectorImageFilter is meant for use with input images of the
type Image< Vector< T, D >, N > rather than VectorImage< T, N >Its looking
for the trait Dimension in the pixel type of the image, which exists only for
pixels of the type Vector< T, D > etc. We could make it work with
itk::VectorImage also quite easily, but haven't done that yet.Thanks--karthik
>
> On Sat, Mar 19, 2011 at 10:09 PM, Greg Sharp
<gregsharp.geo at yahoo.com> wrote: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
Thank you Karthik.
It is not a priority for me, because I already worked around
the problem. But it would be good to mention this in
the documentation. I will file a bug report.
Greg
More information about the Insight-users
mailing list