[vtkusers] smoothing vtkImageData with vtkImageGaussianSmooth

Jothy jothybasu at gmail.com
Wed Jul 14 10:42:01 EDT 2010


Are you setting gaussianFilter->SetStandardDeviations()

Jothy

On Wed, Jul 14, 2010 at 3:37 PM, Liam Kurmos <quantum.leaf at googlemail.com>wrote:

> Thanks, worked great:
>
> gaussianSmoothFilter->SetInput(vol);
> gaussianSmoothFilter->Update();
> vol=gaussianSmoothFilter->GetOutput();
>
> unfortunately it didn't solve my problem with the contour tree
> construction... though i didnt really expect it to.
>
> Liam
>
> On Wed, Jul 14, 2010 at 3:17 PM, Jothy <jothybasu at gmail.com> wrote:
> > GaussianFilter->GetOutput() should return the output in vtkImageData
> format.
> >
> > Try and let's know
> >
> > Jothy
> >
> > On Wed, Jul 14, 2010 at 3:13 PM, Liam Kurmos <
> quantum.leaf at googlemail.com>
> > wrote:
> >>
> >> On Wed, Jul 14, 2010 at 3:04 PM, Jothy <jothybasu at gmail.com> wrote:
> >> > My problem was different. I was trying to create a graduall fall off
> >> > from
> >> > the image with a uniform scalar value inside it. Something like a cube
> >> > of
> >> > uniform values and a graduall fall of scalar value from its edges.
> >> >
> >>
> >> I see. I imagine that is what should happen if you smooth such an
> >> image by gaussian convolution.
> >>
> >> I already have summed gaussian data in my image ( which should be
> >> smooth). I'm trying to use a library to produce a Contour Tree from
> >> the data but it is producing spurious values, though i am sceptical my
> >> supervisor want me to try smoothing the gaussian data and see if that
> >> solves the problem.
> >>
> >> Is there a way i can feed the output of the gaussianSmoothFilter back
> >> into the vtkImageData vol, such that it updates it with smoothed
> >> values and i can then access these with
> >> vol->GetScalarComponentAsFloat(i, j, k, 0);
> >>
> >> ?
> >>
> >>
> >> Liam
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100714/b993d4d9/attachment.htm>


More information about the vtkusers mailing list