[Insight-users] Run the same filter several times
Nicolas Payet
nicolas.payet2 at gmail.com
Fri May 2 06:08:18 EDT 2008
Hi all,
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 :
ImageType::Pointer image=reader->GetOutput();
for (int i=0;i<NbrIterations;i++)
{
filter->SetInput(image);
image=filter->GetOutput();
image->Update();
}
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...)
Thanks
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080502/9e2731c5/attachment.htm>
More information about the Insight-users
mailing list