[vtkusers] Bluring an image

Jérôme jerome.velut at gmail.com
Wed Feb 10 05:00:47 EST 2010


Hi,

you just have to 'plug' the output of what created your image to
vtkImageGaussianSmooth.
The output of GaussianBlur will be a blurred image, that you can use as an
input of your
visualisation pipeline.

HTH
Jerome

2010/2/10 circass <circass at gmail.com>

>
> I m using that code for bluring my image but it is bluring all the
> renderwindow elements include annotations. i need to blur only the
> imagedata. How can i do that ?
>
>        vtkLightsPass *lights=vtkLightsPass::New();
>        vtkDefaultPass *default=vtkDefaultPass::New();
>
>        // Put them in a sequence.
>        vtkRenderPassCollection *passes=vtkRenderPassCollection::New();
>        passes->AddItem(lights);
>        passes->AddItem(default);
>
>        vtkSequencePass *seq=vtkSequencePass::New();
>        seq->SetPasses(passes);
>
>        // Make the sequence the delegate of a camera pass.
>        vtkCameraPass *cameraP=vtkCameraPass::New();
>        cameraP->SetDelegatePass(seq);
>
>        vtkGaussianBlurPass *blurP=vtkGaussianBlurPass::New();
>        blurP->SetDelegatePass(cameraP);
>
>        m_viewer->GetRenderer()->SetPass(blurP);
>        m_viewer->Render();
>
>
> Thanx in advance.
> Circass
> --
> View this message in context:
> http://old.nabble.com/Bluring-an-image-tp27527080p27527080.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100210/cb2b2a39/attachment.htm>


More information about the vtkusers mailing list