[vtkusers] vtkImageDilateErode3D
David Gobbi
david.gobbi at gmail.com
Thu Apr 9 13:51:19 EDT 2015
On Thu, Apr 9, 2015 at 11:44 AM, Konstantin <dmitrievko at gmail.com> wrote:
> Hi, everyone,
>
> I have a problem with vtkImageDilateErode3D filter. For some reasons it
> doesn't return the processed volume.
>
> connector->GetOutput()->Print(std::cout); //before
> vtkSmartPointer<vtkImageDilateErode3D> dilateErode =
> vtkSmartPointer<vtkImageDilateErode3D>::New();
> dilateErode->SetInputData(connector->GetOutput());
> dilateErode->SetDilateValue(0);
> dilateErode->SetErodeValue(255);
> dilateErode->SetKernelSize(5, 5, 3);
> dilateErode->GetOutput()->Print(std::cout); //after/
>
> Could you point me in the right direction?
>
You have to call dilateErode->Update(); before you print the output.
- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150409/e5b003b7/attachment.html>
More information about the vtkusers
mailing list