[Insight-users] pipeline doesn't flush

Camille Lemen lemen at tsi.enst.fr
Thu Sep 7 09:55:27 EDT 2006


Did You try:
for ( n iterations )
{
        perform operations on myImage;

        myFilter->Update();
myFilter->GetOutput()->DisconnectPipeline();
}
On Wednesday 06 September 2006 23:05, Aditya Chandramouli wrote:
> Hi,
>
> I have the following (pseudo-)code:
>
> ---------------------------------
> myFilter::New();
> myFilter->SetInput(myImage);
>
> for ( n iterations )
> {
> 	perform operations on myImage;
>
> 	myFilter->Update();
> }
> ---------------------------------
>
> My problem is that the Update only seems to take place on the first
> iteration of the loop.
>
> On subsequent iterations, the update doesn't seem to take place although
> myImage undergoes changes on each iteration and I need to re-run the filter
> on it.
>
> I've tried to reinsert the myFilter->SetInput(myImage) line within the
> loop, with no effect.
>
> Any help or suggestions would be most appreciated.
>
> thanks.
>
> aditya
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list