]> Creatis software - clitk.git/blobdiff - tools/clitkImageToVectorImageGenericFilter.txx
Replace "itk::NumericTraits<PixelType>::Zero" with explicit initialisation (for macos)
[clitk.git] / tools / clitkImageToVectorImageGenericFilter.txx
old mode 100755 (executable)
new mode 100644 (file)
index b26863e..8bbeab8
  * @brief 
  * 
  ===================================================*/
-
+#if ITK_VERSION_MAJOR < 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR <= 2)
+# include "itkCompose3DVectorImageFilter.h"
+#else
+# include "itkComposeImageFilter.h"
+#endif
 
 namespace clitk
 {
@@ -78,7 +82,11 @@ namespace clitk
     typedef itk::Image<itk::Vector<PixelType,3>, Dimension> OutputImageType;
     
     // Filter
+#if ITK_VERSION_MAJOR < 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR <= 2)
     typedef itk::Compose3DVectorImageFilter<InputImageType,OutputImageType> ComposeFilterType;
+#else
+    typedef itk::ComposeImageFilter<InputImageType,OutputImageType> ComposeFilterType;
+#endif
     typename ComposeFilterType::Pointer composeFilter=ComposeFilterType::New();
 
     // Read the inputs