<font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><h3><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" size="2">Hello!</font></span></h3>
</span><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><h3><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" size="2">With  itk::GradientImageFilter you obtain a output image consisting of a covariant vector image with the x and y components...</font></span></h3>
</span><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">If you want to generate separated x and y components in two different images you can use iterators to traverse the covariant vector image and just copy the x and y values into different images</span></font><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><h3 style="font-size: 12px; ">
<span class="Apple-style-span" style="font-weight: normal;">regards</span></h3></span><br><div class="gmail_quote">2011/9/22 Antonio Gómez Barquero <span dir="ltr">&lt;<a href="mailto:agb1@alu.upct.es">agb1@alu.upct.es</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="ES" link="blue" vlink="purple"><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">Hello!<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US">I would like to calculate the <b>x</b> and <b>y</b> component of the gradient of a 2D image. As in MATLAB is calculated with </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">[dT2,dT1] = gradient(T);</span><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Courier New&quot;"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US">ReaderType::Pointer T_g            <span style="color:#00B050">// image </span><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">                FilterType::Pointer gradientFilter = FilterType::New();<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">                gradientFilter-&gt;SetInput( T_g-&gt;GetOutput());<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">                gradientFilter-&gt;Update();<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">With this sentence, I get the result, but I want to have the x-component and the y-component<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US">gradientFilter-&gt;GetOutput()<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Is there any method to extract it? I am looking for it but I have no positive result!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thanks so much<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal">
<span lang="EN-US">Antonio<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="ES-TRAD" style="font-size:8.0pt">Ingeniero de Telecomunicaciones -Becario Investigador asociado a Actividades de I+D+I <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="ES-TRAD" style="font-size:8.0pt">GTTS ( Grupo de Tratamiento y Teoría de la Señal)[ </span><span style="font-size:8.0pt"><a href="http://gtts.upct.es/" target="_blank"><span style="color:blue">http://gtts.upct.es/</span></a></span><span lang="ES-TRAD" style="font-size:8.0pt">]<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="ES-TRAD" style="font-size:8.0pt">UPCT (Universidad Politécnica de Cartagena)[ </span><span style="font-size:8.0pt"><a href="http://www.upct.es/" target="_blank"><span style="color:blue">http://www.upct.es/</span></a>]</span><span lang="ES-TRAD" style="font-size:8.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p></div></div><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"><div><br></div>-- <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">www.alma3d.com</a><br>