X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FitkVTKImageToImageFilter.txx;h=5fddba28f6d49f17db81cd18ae91f8435a234e88;hb=378ee630dce37a3e15baf3a8027542c2f8cf43de;hp=c749a0fae75e736b36663a1be9a1bde499fa3448;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/itk/itkVTKImageToImageFilter.txx b/itk/itkVTKImageToImageFilter.txx index c749a0f..5fddba2 100644 --- a/itk/itkVTKImageToImageFilter.txx +++ b/itk/itkVTKImageToImageFilter.txx @@ -77,7 +77,11 @@ void VTKImageToImageFilter ::SetInput( vtkImageData * inputImage ) { +#if VTK_MAJOR_VERSION <= 5 m_Exporter->SetInput( inputImage ); +#else + m_Exporter->SetInputData( inputImage ); +#endif } @@ -86,7 +90,8 @@ VTKImageToImageFilter * Get an itk::Image as output */ template -const typename VTKImageToImageFilter::OutputImageType * +//const +typename VTKImageToImageFilter::OutputImageType * VTKImageToImageFilter ::GetOutput() const {