<font size="2">
<div align="left"><strong>Hi friends,</strong></div>
<div align="left"><strong></strong> </div>
<div align="left"><strong>I have this quick question. How can I perform a filtering inside a loop structure? I suppose that the error is related to the pipeline that is only updated when the filter is called again, making a (might) non-sense case where the input is actually the output of the filter. Is there any way to perform this correctly?
</strong></div>
<div align="left"><strong></strong> </div>
<div align="left"><strong>I'm sending the code in which I'm facing the problem ( I got an empty image in the end of the loop, and the filtering would never generate it ).</strong></div>
<div align="left"></div></font><b><font color="#7f0055" size="2"></font></b>
<div align="left"><b><font color="#7f0055" size="2">for</font></b><font size="2"> (</font><b><font color="#7f0055" size="2">int</font></b><font size="2"> i =0; i<=2; ++i)</font></div>
<p align="left">{</p>
<p align="left">filter-><font color="#005032" size="2">SetInput</font><font size="2">(imageFiltered);</font></p>
<p align="left">filter-><b><font color="#642880" size="2">Update</font></b><font size="2">();</font></p>
<p align="left">imageFiltered=filter-><font color="#005032" size="2">GetOutput</font><font size="2">();</font></p>
<p align="left"><font size="2">}</font></p>
<div align="left"><strong>Thanks in advance!</strong></div><br>-- <br>Dário Oliveira