<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Apr 9, 2015 at 11:44 AM, Konstantin <span dir="ltr"><<a href="mailto:dmitrievko@gmail.com" target="_blank">dmitrievko@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, everyone,<br>
<br>
I have a problem with vtkImageDilateErode3D filter. For some reasons it<br>
doesn't return the processed volume.<br><br>
connector->GetOutput()->Print(std::cout); //before<br>
vtkSmartPointer<vtkImageDilateErode3D> dilateErode =<br>
vtkSmartPointer<vtkImageDilateErode3D>::New();<br>
dilateErode->SetInputData(connector->GetOutput());<br>
dilateErode->SetDilateValue(0);<br>
dilateErode->SetErodeValue(255);<br>
dilateErode->SetKernelSize(5, 5, 3);<br>
dilateErode->GetOutput()->Print(std::cout); //after/<br>
<br>
Could you point me in the right direction?<br></blockquote><div><br></div><div>You have to call dilateErode->Update(); before you print the output.</div><div><br></div><div> - David </div></div></div></div>