[vtkusers] smoothing vtkImageData with vtkImageGaussianSmooth

Liam Kurmos quantum.leaf at googlemail.com
Wed Jul 14 10:00:01 EDT 2010


On Wed, Jul 14, 2010 at 2:45 PM, Preeti Bindu <preetibindu at gmail.com> wrote:
> 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.
>

ah, sorry accidentally posted it as a reply to Jothy rather than a
reply to vtkusers.

in any case:

input works with:
 vtkSmartPointer<vtkImageGaussianSmooth> gaussianSmoothFilter =
      vtkSmartPointer<vtkImageGaussianSmooth>::New();

  gaussianSmoothFilter->SetInput(vol);
  gaussianSmoothFilter->Update();

where vol is vtkImageData*

Jothy mentioned that he had some trouble getting smoothing to work so
i will investigate,

Liam



More information about the vtkusers mailing list