[Insight-users] Filter is not updating

Nils H. Busch nilsb at cbs.mpg.de
Tue Aug 30 08:16:16 EDT 2005


Hi,

I have written an iterative filter derived from ImageToImageFiler
containing two level set image filters. Each component filters receives
the output of its  previous run as input for its next run. In addition to
that, one of its inputs is the output of the other component filter.
The filters are run for one iteration, then their inputs are reset and the
whole iteration cycle starts again until both filter have converged.
As told, I grab for each filter its output, call DisconnectPipeline on it,
then assign the output to one of the inputs of the connected filter.

My code looks like this (excerpt)
while (!this->Halt()) {
  for (unsigned int i = 0; i < this->GetNumberOfOutputs(); ++i)  {
    m_Filter[i]->SetInput(iterationOutput[i]);



-- 
  Nils H. Busch


More information about the Insight-users mailing list