]> Creatis software - clitk.git/blobdiff - itk/itkVTKImageToImageFilter.txx
Add preserve studyUID in clitkImage2Dicom
[clitk.git] / itk / itkVTKImageToImageFilter.txx
index c749a0fae75e736b36663a1be9a1bde499fa3448..5fddba28f6d49f17db81cd18ae91f8435a234e88 100644 (file)
@@ -77,7 +77,11 @@ void
 VTKImageToImageFilter<TOutputImage>
 ::SetInput( vtkImageData * inputImage )
 {
+#if VTK_MAJOR_VERSION <= 5
   m_Exporter->SetInput( inputImage );
+#else
+  m_Exporter->SetInputData( inputImage );
+#endif
 }
 
 
@@ -86,7 +90,8 @@ VTKImageToImageFilter<TOutputImage>
  * Get an itk::Image as output
  */
 template <class TOutputImage>
-const typename VTKImageToImageFilter<TOutputImage>::OutputImageType *
+//const 
+typename VTKImageToImageFilter<TOutputImage>::OutputImageType *
 VTKImageToImageFilter<TOutputImage>
 ::GetOutput() const
 {