No we don't have such a filter. But we do have the GradientImageFilter (or the GradientRecursiveGaussianImageFilter). <br><br>You can iterate over the output pixels (covariant vectors) and take the outer product of each voxel with itself to construct a itk::SymmetricSecondRankTensor. You may want to write an operator class for this (see the several itk*Operator's) available in ITK.<br>
<br>Perhaps you could contribute the resulting filter at the Insight-journal<br><br>--<br>karthik<br><br><div class="gmail_quote">On Fri, Jun 4, 2010 at 5:48 PM, Sergio Vera <span dir="ltr"><<a href="mailto:sergio.vera@alma3d.com">sergio.vera@alma3d.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;">Hello<br><br>I'm in need of calculating the structure tensor (also called second moment matrix) of an image, and it seems that there is not a filter to compute it in ITK.<br>
I've seen the class itk::TensorRelativeAnisotropyImageFilter and I'm not sure if it may be related to the structure tensor?<br><font color="#888888">
-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>
<div style="display: inline;"></div>
</font><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>
<br></blockquote></div><br><br clear="all"><br><br>