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've done so far :<br>
<br> <br> ImageType::Pointer image=reader->GetOutput();<br><br> for (int i=0;i<NbrIterations;i++)<br> <br> {<br> <br> filter->SetInput(image);<br> image=filter->GetOutput();<br> image->Update();<br>
<br> }<br><br>This intuitive approach works well, but is a bit slow since I'm working with a large set of data. I was wondering whether there was a more efficient way to implement this. I've already read the post "how to update the content of an image", 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>