<div dir="ltr">Hi Sean,<div><br></div><div>There are two filters in the ITKVTKGlue module (it has to be enabled explicitly in your ITK build with the Module_ITKVTKGlue option) that are used to glue together ITK and VTK pipelines. See these examples:</div><div><br></div><div>  <a href="https://itk.org/ITKExamples/src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/Documentation.html">https://itk.org/ITKExamples/src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/Documentation.html</a></div><div><br></div><div>  <a href="https://itk.org/ITKExamples/src/Bridge/VtkGlue/ConvertvtkImageDataToAnitkImage/Documentation.html">https://itk.org/ITKExamples/src/Bridge/VtkGlue/ConvertvtkImageDataToAnitkImage/Documentation.html</a></div><div><br></div><div>Hope this helps,</div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 28, 2017 at 1:25 PM, Sean Lee <span dir="ltr"><<a href="mailto:KevinSeanLee@live.com" target="_blank">KevinSeanLee@live.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-5338352946832835193divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>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:</p>
<p><br>
</p>
<p>in constructor:</p>
<p><br>
</p>
<p>m_ItkImage = ItkImageType::New();</p>
<p>m_ItkImageFilter = ItkImageFilterType::New();</p>
<p><br>
</p>
<p>in image processing function:</p>
<p><br>
</p>
<p>m_ItkImage gets an image from vtk pipeline</p>
<p><br>
</p>
<p>m_ItkImageFilter->SetInput(m_<wbr>ItkImage);</p>
<p>m_ItkImageFilter->Update();</p>
<p><br>
</p>
<p><span>m_ItkImageFilter->GetOutput() was sent back to the vtk pipeline</span></p>
<p><br>
</p>
<p>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.</p>
<p><br>
</p>
<p>How can I make <span>m_ItkImageFilter->GetOutput() updated too through the vtk pipeline?</span></p>
<p><span><br>
</span></p>
<p><span>Thank you for your time.</span></p>
<p></p>
<div><br>
</div>
<p></p>
<p><br>
</p>
<p><br>
</p>
</div>
</div>

<br>______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>