[vtkusers] Bluring an image
circass
circass at gmail.com
Wed Feb 10 10:55:43 EST 2010
Yep i did that and it is working good. Thanx for your help.
Circass
Jérôme-2 wrote:
>
> 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
>>
>
> _______________________________________________
> 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
>
>
--
View this message in context: http://old.nabble.com/Bluring-an-image-tp27527080p27533387.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list