Hi<br><br>Thanks! It&quot;s clear now:)<br><br><div class="gmail_quote">On Tue, Apr 22, 2008 at 7:40 PM, Amy Squillacote &lt;<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>&gt; 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 Adrian,<br>
<br>
A call to Update() in VTK does propagate back to earlier filters in the pipeline. However, the pipeline checks whether the a filter is up-to-date before calling Update() on it, so as long as you don&#39;t make any changes to the instance of vtkImageGradientMagnitude between calling Update() on it and calling Update() on the instance of vtkImageGradient, each filter should perform its computation only once.<br>

<br>
- Amy<br>
<br>
Adrian Albert wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
<br>
Dear All,<br>
<br>
<br>
I have a question about the pipeline update mechanism in VTK: If I call Update () on an algorithm that has as input the output of another algorithm, does the Update command propagate down the pipeline and causes a recomputation for all algorithms involved?<br>

For example, this code should calculate the gradient of the gradient magnitude (a measure of a second order derivative):<br>
<br>
 &nbsp;// Gradient magnitude<br>
 &nbsp;vtkImageGradientMagnitude* grad = vtkImageGradientMagnitude::New();<br>
 &nbsp;grad-&gt;SetDimensionality( 3 );<br>
 &nbsp;grad-&gt;SetInput (this-&gt;GetMultivariateField (whichField));  &nbsp;grad-&gt;Update ();<br>
<br>
 &nbsp;// Gradient of gradient magnitude<br>
 &nbsp;vtkImageGradient* gradGrad = vtkImageGradient::New();<br>
 &nbsp;gradGrad-&gt;SetDimensionality( 3 );<br>
 &nbsp;gradGrad-&gt;SetInput (grad-&gt;GetOutput ());<br>
 &nbsp;gradGrad-&gt;Update ();<br>
&nbsp;Specifically, would I cause two computations of the gradient magnitude (first 4 lines of code) by calling Update twice?<br>
<br>
Thanks!<br>
Adrian<br>
<br>
-- <br>
---------------------------------------------------<br>
Adrian Albert<br>
School of Engineering and Science<br>
Jacobs University Bremen<br>
Germany<br>
Tel.: 00494212003258<br></div></div>
------------------------------------------------------------------------<div class="Ih2E3d"><br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
 &nbsp;<br>
</div></blockquote><font color="#888888">
<br>
-- <br>
Amy Squillacote &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Phone: (256) 726-4839<br>
Computer Scientist &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: (256) 726-4806<br>
CFD Research Corporation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL &nbsp;35805<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------<br>Adrian Albert<br>School of Engineering and Science<br>Jacobs University Bremen<br>Germany<br>Tel.: 00494212003258