<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I would like to modify my pipeline by inserting a new filter. Actually, this new filter will be
<DIV>an histogram equalization image filter applied on my displayed image but only if the user clicks on a button. </DIV></DIV>
<DIV> </DIV>
<DIV>For the moment, I have: </DIV>
<DIV><STRONG>rescaleFilter -> SetInput( image_initiale );</STRONG></DIV>
<DIV> </DIV>
<DIV>But, only if user desires, an histogram equalization filter will be introduced such as:</DIV>
<DIV> </DIV>
<DIV><STRONG>ON_BN_CLICKED:</STRONG></DIV>
<DIV><STRONG>{<BR> WorkImageType::Pointer oldImage = rescaleFilter->GetOutput();</STRONG></DIV>
<DIV><STRONG>oldImage -> DisconnectPipeline(); </STRONG>//image displayed before any histogram equalization</DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG> histogramEqualizationFilter->SetInput( oldImage );<BR> rescaleFilter->SetInput( histogramEqualizationFilter->GetOutput() );</STRONG>//new image displayed</DIV>
<DIV><STRONG> rescaleFilter->Update(); <BR> }</STRONG></DIV>
<DIV> </DIV>
<DIV>Unhappily, this doesn't work: once button is clicked, histogramEqualizationFilter's output is the same as before = oldImage. I really don't understand. I thought <STRONG>disconnectPipeline</STRONG> would be sufficient.</DIV>
<DIV> </DIV>
<DIV>What do I miss?</DIV>
<DIV> </DIV>
<DIV>Isabelle</DIV>
<DIV> </DIV>
<DIV> </DIV><p>
                <hr size=1>
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br>
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>