Hi,<br><br>you just have to 'plug' the output of what created your image to vtkImageGaussianSmooth. <br>The output of GaussianBlur will be a blurred image, that you can use as an input of your<br>visualisation pipeline.<br>
<br>HTH<br>Jerome<br><br><div class="gmail_quote">2010/2/10 circass <span dir="ltr"><<a href="mailto:circass@gmail.com">circass@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I m using that code for bluring my image but it is bluring all the<br>
renderwindow elements include annotations. i need to blur only the<br>
imagedata. How can i do that ?<br>
<br>
vtkLightsPass *lights=vtkLightsPass::New();<br>
vtkDefaultPass *default=vtkDefaultPass::New();<br>
<br>
// Put them in a sequence.<br>
vtkRenderPassCollection *passes=vtkRenderPassCollection::New();<br>
passes->AddItem(lights);<br>
passes->AddItem(default);<br>
<br>
vtkSequencePass *seq=vtkSequencePass::New();<br>
seq->SetPasses(passes);<br>
<br>
// Make the sequence the delegate of a camera pass.<br>
vtkCameraPass *cameraP=vtkCameraPass::New();<br>
cameraP->SetDelegatePass(seq);<br>
<br>
vtkGaussianBlurPass *blurP=vtkGaussianBlurPass::New();<br>
blurP->SetDelegatePass(cameraP);<br>
<br>
m_viewer->GetRenderer()->SetPass(blurP);<br>
m_viewer->Render();<br>
<br>
<br>
Thanx in advance.<br>
Circass<br>
--<br>
View this message in context: <a href="http://old.nabble.com/Bluring-an-image-tp27527080p27527080.html" target="_blank">http://old.nabble.com/Bluring-an-image-tp27527080p27527080.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>