Hello,<br><br>I am trying to use itk::VTKImageToImageFilter to to convert a VTK image to an ITK image. <br>The call vtkImageToImageFilter->Update(); never returns but there is no error message and program simply stops. <br>
<br>vtkImageData* vtkInput;<br><br><br clear="all"> typedef itk::Image<float, 3> ImageType;<br><br> typedef itk::VTKImageToImageFilter<ImageType> VTKImageToImageType;<br><br> typename VTKImageToImageType::Pointer vtkImageToImageFilter = VTKImageToImageType::New();<br>
QLOG_DEBUG() << "Prepared Filter";<br> vtkImageToImageFilter->SetInput(vtkInput);<br> QLOG_DEBUG() << "Set input to filter";<br> vtkImageToImageFilter->Update();<br>
QLOG_DEBUG() << "Updated filter";<br> typename ImageType::ConstPointer itkOutput = vtkImageToImageFilter->GetOutput();<br> QLOG_DEBUG() << "Got output";<br> <br>
<br><br><br>-- <br><font color="#888888">Karl Diedrich, Ph.D.<br>Principal Engineer<br>----------------------------------------<br>
AZE Research and Development<br>1 Broadway, 14th floor<br>Cambridge, MA 02142<br>Tel: <a value="+16174751502">+1 (617) 475-1502</a><br>Cell: <a value="+19492288509">+1 (801) 350-1251</a><br><a href="http://www.azeofamerica.com/" target="_blank">www.azeofamerica.com</a></font><br>