[vtkusers] smoothing vtkImageData with vtkImageGaussianSmooth

Preeti Bindu preetibindu at gmail.com
Wed Jul 14 09:45:10 EDT 2010


With SetInput it accepts ImageData as input while if you opt for
SetInputConnection it will need vtkAlgorithmOutput.
Hope it helps. Would be quick enough if you could post the code.

P.S. I have VTK-5.6 installed on my machine.

On Wed, Jul 14, 2010 at 9:40 AM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:

> On Wed, Jul 14, 2010 at 3:33 PM, Jothy <jothybasu at gmail.com> wrote:
> > Can you post your code?
> >
> > Jothy
> >
> > On Wed, Jul 14, 2010 at 2:30 PM, Liam Kurmos <
> quantum.leaf at googlemail.com>
> > wrote:
> >>
> >> Hi All,
> >>
> >> I want to smooth some 3D image data with vtkImageGaussianSmooth, but i
> >> can't seem to connect the pipeline. The filter wants a
> >> vtkAlgorithmOutput* as input but i don't know how to get one for a
> >> vtkImageData.
> >>
> >> the example in the wiki uses vtkImageCanvasSource2D->GetOutputPort()
> >> which isnt what i want.
> >> How should i connect these two? also if there is a way i could have
> >> found this out (other than asking) i'd be very grateful if you can let
> >> me know.
> >>
> >> cheers,
> >>
> >> Liam
> >> _______________________________________________
> >> Powered by www.kitware.com
> >
>
> Are you using SetInput or SetInputConnection. As Jothy said, it would
> be best if you could post your code. Also, which version of VTK are
> you using?
>
> Thanks,
>
> David
> _______________________________________________
> 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
>



-- 
Regards,
Preeti Bindu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100714/51933e23/attachment.htm>


More information about the vtkusers mailing list