On Wed, Feb 1, 2012 at 1:53 PM, Karl Diedrich
<
karl.diedrich <at> azeresearch.com> wrote:
> Hello,
>
> I am trying to use itk::VTKImageToImageFilter to to convert a VTK image to
> an ITK image.
> The call vtkImageToImageFilter->Update(); never returns but there is no
> error message and program simply stops.
>
> vtkImageData* vtkInput;
>
>
> typedef itk::Image<float, 3> ImageType;
>
> typedef itk::VTKImageToImageFilter<ImageType> VTKImageToImageType;
>
> typename VTKImageToImageType::Pointer vtkImageToImageFilter =
> VTKImageToImageType::New();
> QLOG_DEBUG() << "Prepared Filter";
> vtkImageToImageFilter->SetInput(vtkInput);
> QLOG_DEBUG() << "Set input to filter";
> vtkImageToImageFilter->Update();
> QLOG_DEBUG() << "Updated filter";
> typename ImageType::ConstPointer itkOutput =
> vtkImageToImageFilter->GetOutput();
> QLOG_DEBUG() << "Got output";
>
>
>
>
> --
> Karl Diedrich, Ph.D.
> Principal Engineer
> ----------------------------------------
> AZE Research and Development
> 1 Broadway, 14th floor
> Cambridge, MA 02142
> Tel:
+1 (617) 475-1502
> Cell:
+1 (801) 350-1251
>
www.azeofamerica.com
>