<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>Hi everyone, <div style="color: rgb(0, 0, 0); "><br></div><div style="color: rgb(0, 0, 0); ">I have some code like</div><div style="color: rgb(0, 0, 0); "><br></div><div>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><!--StartFragment--><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">MultiplyImageFilterType</span>::<span style=" color:#800080;">Pointer</span><span style=" color:#c0c0c0;"> </span>multiplyImageFilter=<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">MultiplyImageFilterType</span>::New();</pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><span style=" color:#c0c0c0;"> </span>multiplyImageFilter->SetInput1(derivePSI->GetOutput()<span style=" color:#c0c0c0;"> </span>);</pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><span style=" color:#c0c0c0;"> </span>multiplyImageFilter->SetInput2(deriveImage->GetOutput());</pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><span style=" color:#c0c0c0;"> </span>multiplyImageFilter->Update();</pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "></pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">AddImageFilterType</span>::<span style=" color:#800080;">Pointer</span><span style=" color:#c0c0c0;"> </span>addImageFilter=<span style=" color:#800080;">AddImageFilterType</span>::New();</pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><span style=" color:#c0c0c0;"> </span>addImageFilter->SetInput1(secondtermImage);</pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><span style=" color:#c0c0c0;"> </span>addImageFilter->SetInput2(multiplyImageFilter->GetOutput());</pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><span style=" color:#c0c0c0;"> </span>addImageFilter->Update();<!--EndFragment--></pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "> secondtermImage<span style="color: rgb(192, 192, 192); "> </span>=<span style="color: rgb(192, 192, 192); "> </span>addImageFilter->GetPutput();</pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><span style=" color:#c0c0c0;"> </span>secondtermImage->DisconnectPipeline();<!--EndFragment--></pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><br></pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; ">My question is:</pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><br></pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; ">If I call the DisconnectPipeline on secondtermImage, does it disconnects from the whole set of filters before it or just the addImageFilter?</pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><br></pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; ">If anyone can clarify this doubt, it will be really helpful.</pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><br></pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; ">Thanks in advance</pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; ">Vikash</pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><br></pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><br></pre><pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; "><br></pre></div></div></body></html>