X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkImageToVectorImageGenericFilter.txx;h=8bbeab86ab3bc53853ce0554dc247edaeb44e3c8;hb=d2264227eb56300989795b8fd305cc3e1cfbe081;hp=b26863ed731232bc81edd23808c12ba27d385bb2;hpb=08d1fd56ac1d08bd228d9e557f5472a395e9b708;p=clitk.git diff --git a/tools/clitkImageToVectorImageGenericFilter.txx b/tools/clitkImageToVectorImageGenericFilter.txx index b26863e..8bbeab8 100644 --- a/tools/clitkImageToVectorImageGenericFilter.txx +++ b/tools/clitkImageToVectorImageGenericFilter.txx @@ -26,7 +26,11 @@ * @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, Dimension> OutputImageType; // Filter +#if ITK_VERSION_MAJOR < 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR <= 2) typedef itk::Compose3DVectorImageFilter ComposeFilterType; +#else + typedef itk::ComposeImageFilter ComposeFilterType; +#endif typename ComposeFilterType::Pointer composeFilter=ComposeFilterType::New(); // Read the inputs