Hi Greg:<br><br>itk::WarpVectorImageFilter is meant for use with input images of the type <br><br> Image< Vector< T, D >, N > <br><br>rather than<br> VectorImage< T, N ><br><br>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. <br>
<br>We could make it work with itk::VectorImage also quite easily, but haven't done that yet.<br><br>Thanks<br>--<br>karthik<br><br><div class="gmail_quote">On Sat, Mar 19, 2011 at 10:09 PM, Greg Sharp <span dir="ltr"><<a href="mailto:gregsharp.geo@yahoo.com">gregsharp.geo@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Is it possible to warp a VectorImage with WarpVectorImageFilter<br>
using a deformation field?<br>
<br>
I try this:<br>
<br>
typedef itk::WarpVectorImageFilter <<br>
itk::VectorImage < unsigned char, 3 >, // Input image<br>
itk::VectorImage < unsigned char, 3 >, // Output image<br>
itk::Image < itk::Vector < float, 3 >, 3 > // Vector field<br>
> WarpFilterType;<br>
WarpFilterType::Pointer filter = WarpFilterType::New();<br>
<br>
But it doesn't compile. This is ITK 3.20.0, linux, gcc 4.5.2.<br>
Here is the compile error:<br>
<br>
home/gsharp/build/src/InsightToolkit-3.20.0/Code/BasicFilters<br>
/itkWarpVectorImageFilter.h:126:3:<br>
error: ‘Dimension’ is not a member of<br>
‘itk::WarpVectorImageFilter<itk::VectorImage<unsigned char, 3u>,<br>
itk::VectorImage<unsigned char, 3u>, itk::Image<itk::Vector<float, 3u>,<br>
3u> >::PixelType’<br>
<br>
Is this a bug?<br>
<br>
-Greg<br>
<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>