<div><div class="gmail_quote">On Tue, Feb 9, 2010 at 2:39 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><div class="gmail_quote">On Tue, Feb 9, 2010 at 10:06 AM, Sergio Vera <span dir="ltr">&lt;<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>you can use <a href="http://www.vtk.org/doc/release/5.4/html/a00771.html" title="Computes magnitude of the gradient." target="_blank">vtkImageGradientMagnitude</a> too<br><br>regards.<br><font color="#888888"><br>
Sergio</font><div>
<div></div><div></div></div></blockquote></div><br></div><div>Jerome,</div><div><br>I improved this example based on what you said:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Images/ImageSobel2D" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Images/ImageSobel2D</a></div>

<div><br></div><div>However, the x and y components do not look as I would expect. Can you take a quick look over this?</div><div><br></div><div>Thanks,<br><font color="#888888"><br>David</font></div>
</blockquote></div><br></div><div>Nevermind, forgot to take the absolute value. It&#39;s working now :)<div><br></div><div>Circass, take a look and let us know if you&#39;re all set.</div><div><br clear="all">Thanks,<br>
<br>David</div></div>