[Insight-users] please help with modifing pipeline
Renaud Isabelle
renauisa at yahoo.fr
Thu Aug 4 13:59:35 EDT 2005
Hi,
I would like to modify my pipeline by inserting a new filter. Actually, this new filter will be an histogram equalization image filter applied on my displayed image but only if the user clicks on a button.
For the moment, I have:
rescaleFilter -> SetInput( image_initiale );
But, only if user desires, an histogram equalization filter will be introduced such as:
ON_BN_CLICKED:
{
WorkImageType::Pointer oldImage = rescaleFilter->GetOutput();
oldImage -> DisconnectPipeline(); //image displayed before any histogram equalization
histogramEqualizationFilter->SetInput( oldImage );
rescaleFilter->SetInput( histogramEqualizationFilter->GetOutput() );//new image displayed
rescaleFilter->Update();
}
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 disconnectPipeline would be sufficient.
What do I miss?
Isabelle
---------------------------------
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050804/9921842b/attachment.htm
More information about the Insight-users
mailing list