[Insight-users] VTK->ITK problem
Luis Ibanez
luis.ibanez at kitware.com
Tue, 06 Apr 2004 16:30:41 -0400
Hi Tianbai,
Please post the exact error message that
you get when you are running this code.
Thanks
Luis
------------------
Tianbai wrote:
> HI,
> i have a problem when convert vtk to itk. i use the
> \InsightApplications-1.6.0\Auxiliary\vtk directory 's
> itkVTKImageToImageFilter, but everytime when update there is a debug
> error, i can't figure out the problem,did i miss something?
> Can you help me? thanks a lot
> WALTER
>
> /////////////////////////////////////////////////////////////////////////
> const unsigned int Dimension = 3;
> typedef float PixelType;
> typedef itk::Image< PixelType, Dimension > ImageType;
>
>
> typedef itk::VTKImageToImageFilter<ImageType> vtk2itkType;
> vtk2itkType::Pointer vtk2itk = vtk2itkType::New();
>
> vtk2itk->SetInput(v16->GetOutput());//using vtkvolume16reader data
>
> vtk2itk->Update();
>
>