[Insight-users] Usage of WarpVectorImageFilter

Karthik Krishnan karthik.krishnan at kitware.com
Sun Mar 20 09:48:10 EDT 2011


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
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110320/30eec893/attachment.htm>


More information about the Insight-users mailing list