[Insight-users] Why can\'t I disconnect the pipeline

Luis Ibanez luis.ibanez at kitware.com
Wed Apr 27 12:03:47 EDT 2005


Hi Jimmy,

If you use

        filter->GetOuput()->DisconnectPipeline()

you must call

         filter->ResetPipeline()

before you attempt to use the filters again.



  Regards,


     Luis


-----------------------------------
jimmyqwy at sjtu.edu.cn wrote:

> Hi,everyone:
>    
>    I\'ve recently read "Problems with image corruption : Reusing filters".
>  
>    But whenever I use function DisconnectPipeline, system will catch an fatal error which says Memory cannot readable. Why?
> 
>    and Can I reuse one instance of filter?
> 
>    That is :
>     filter->SetInput( someDataObject );
>     filter->Update();
>     anotherDataObject = filter->GetOutput();
>     anotherDataObject->DisconnectPipeline();
> 
>     filter2->SetInput( anotherDataObject );  //here filter2 changes to filter
>     filter2->Update();    //filter2  to filter
>     yetAnotherDataObject = filter2->GetOutput();  //filter2 to filter
>     yetAnotherDataObject->DisconnectPipeline();
>  
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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