diff --git a/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h b/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h index 4dfc0d87bb5..d5e37908be5 100644 --- a/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h +++ b/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h @@ -141,9 +141,12 @@ class ITK_TEMPLATE_EXPORT GradientImageFilter : public ImageToImageFilter)`.")]] void OverrideBoundaryCondition(BoundaryConditionType * boundaryCondition); +#endif /** Allows to change the default boundary condition */ void diff --git a/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.hxx b/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.hxx index ed5c80c8cb7..1aa68b0ebc4 100644 --- a/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.hxx +++ b/Modules/Filtering/ImageGradient/include/itkGradientImageFilter.hxx @@ -37,6 +37,7 @@ GradientImageFilterThreaderUpdateProgressOff(); } +#ifndef ITK_FUTURE_LEGACY_REMOVE template void GradientImageFilter::OverrideBoundaryCondition( @@ -44,6 +45,7 @@ GradientImageFilter { m_BoundaryCondition.reset(boundaryCondition); } +#endif template void