[vtkusers] turn on/off a filter in pipeline
Charles Boivin
okeovtk at gmail.com
Thu Jul 7 14:59:11 EDT 2005
Hi Isabelle,
Some other, more experienced, users might have some better
suggestions, but an easy way is to simply skip the filter in the
pipeline when you turn it off, i.e.
rescaleFilter->setInput( adaptor );
and re-insert the logFilter in the pipeline when you want it. I do
something similar to that sometimes in my application, and it seems to
work fine. I'd be interested in knowing if there are more elegant
solutions, however.
Charles
On 7/7/05, Renaud Isabelle <renauisa at yahoo.fr> 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 !
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
More information about the vtkusers
mailing list