[vtkusers] Re: [Insight-users] turn on/off a filter in pipeline
Karthik Krishnan
Karthik.Krishnan at kitware.com
Thu Jul 7 15:02:58 EDT 2005
if (on)
{
logFilter->SetInput( adaptor );
rescaleFilter->SetInput( logFilter->GetOutput()) ;
}
else
{
rescaleFilter->SetInput( adaptor );
}
rescaleFilter->Update();
Renaud Isabelle wrote:
> Hi,
>
> I'm working on building an user interface in Visual C++ in order to
> display medical images and execute some image processing.
>
> I would offer the choice to the user to execute some image processing
> such as logarithmic scaling or not in order to improve visualization
> of the image. (depending on the quality of the image displayed)
>
> Here is my actual pipeline:
>
> *adaptor->SetPixelAccessor(acessor); //*ImageAdaptor
> * adaptor->SetImage(image);*
> **
> * logFilter->SetInput( adaptor ); //*LogImageFilter
> * *
> * rescaleFilter->SetInput( logFilter->GetOutput()
> ); //*RescaleIntensityImageFilter
> *
> connector->SetInput( rescaleFilter->GetOutput()
> ); //*ImageToVTKImageFilter
> **
> --> I would make turn on/off log filter () possible if user desires.
> (by turn on/off a radio button). How could I proceed? Is it a way to
> make it properly?
>
> Isabelle
>
> * *
>
> *
> *
>
>
>
> ------------------------------------------------------------------------
> *Appel audio GRATUIT partout dans le monde* avec le nouveau Yahoo!
> Messenger
> Téléchargez le ici !
> <http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the vtkusers
mailing list