Hi all,<br><br>I would like to do something very simple that consists in applying the same filter several times to an image (at each iteration, the input of the filter is the output at the previous iteration). Basically, this is what I&#39;ve done so far :<br>
<br>&nbsp;<br>&nbsp;ImageType::Pointer image=reader-&gt;GetOutput();<br><br>&nbsp;for (int i=0;i&lt;NbrIterations;i++)<br>&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; filter-&gt;SetInput(image);<br>&nbsp;&nbsp;&nbsp;&nbsp; image=filter-&gt;GetOutput();<br>&nbsp;&nbsp;&nbsp;&nbsp; image-&gt;Update();<br>
&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>This intuitive approach works well, but is a bit slow since I&#39;m working with a large set of data. I was wondering whether there was a more efficient way to implement this. I&#39;ve already read the post &quot;how to update the content of an image&quot;, feeling that it was related to my problem, but I could not find my answer (the number of iterations in my application is around 100, so I cannot really declare 100 filters...)<br>
<br>Thanks<br><br>Nico<br>