[ITK-users] multiple itk filters in vtk pipeline issue

Sean Lee KevinSeanLee at live.com
Fri Apr 28 13:25:57 EDT 2017


I am trying to apply image processing with itk through vtk pipeline. It seems no problems with single itk filter, but did not work well with multiple itk filters. The pseudo code is as following:


in constructor:


m_ItkImage = ItkImageType::New();

m_ItkImageFilter = ItkImageFilterType::New();


in image processing function:


m_ItkImage gets an image from vtk pipeline


m_ItkImageFilter->SetInput(m_ItkImage);

m_ItkImageFilter->Update();


m_ItkImageFilter->GetOutput() was sent back to the vtk pipeline


I debugged the m_ItkImage and m_ItkImageFilter->GetOutput(), and saw that m_ItkImage was updated but m_ItkImageFilter was not through the vtk pipeline.


How can I make m_ItkImageFilter->GetOutput() updated too through the vtk pipeline?


Thank you for your time.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20170428/3ea6d910/attachment.html>


More information about the Insight-users mailing list