# Remove Constant Operation Filters

Gaëtan Lehmann
2011-03-29
BinaryFunctorImageFilter as been modified to take a constant as one of the inputs. That way the users have directly access to all the transforms based on BinaryFunctorImageFilter with a constant on one of the operand. This removes the need for AddConstantToImageFilter, DivideByConstantImageFilter, MultiplyByConstantImageFilter and SubtractConstantFromImageFilter and add the ability to set one or the other operand.

#include "itkMultiplyByConstantImageFilter.h" typedef MultiplyByConstantImageFilter< DisplacementFieldType, TimeStepType, DisplacementFieldType > MultiplyType;
#include "itkMultiplyImageFilter.h" typedef MultiplyImageFilter< DisplacementFieldType, itk::Image<TimeStepType, ImageDimension>, DisplacementFieldType > MultiplyType;
I328d66b64485bbafe04a47e95674d98a9d3bdace Ia4b95dbb9dd82f176246e6b84870cf1dfdd217fa
Modules/Filtering/ImageFeature/include/itkCannyEdgeDetectionImageFilter.txx Modules/Filtering/ImageFilterBase/include/itkBinaryFunctorImageFilter.h Modules/Filtering/ImageFilterBase/include/itkBinaryFunctorImageFilter.txx Modules/Filtering/ImageIntensity/include/itkDivideImageFilter.h Modules/Nonunit/Review/include/itkAddConstantToImageFilter.h Modules/Nonunit/Review/include/itkDiffeomorphicDemonsRegistrationFilter.h Modules/Nonunit/Review/include/itkDiffeomorphicDemonsRegistrationFilter.txx Modules/Nonunit/Review/include/itkDivideByConstantImageFilter.h Modules/Nonunit/Review/include/itkExponentialDisplacementFieldImageFilter.h Modules/Nonunit/Review/include/itkExponentialDisplacementFieldImageFilter.txx Modules/Nonunit/Review/include/itkFastSymmetricForcesDemonsRegistrationFilter.h Modules/Nonunit/Review/include/itkFastSymmetricForcesDemonsRegistrationFilter.txx Modules/Nonunit/Review/include/itkMultiplyByConstantImageFilter.h Modules/Nonunit/Review/include/itkSubtractConstantFromImageFilter.h Modules/Nonunit/Review/test/itkAddConstantToImageFilterTest.cxx Modules/Nonunit/Review/test/itkDiscreteGaussianDerivativeImageFilterScaleSpaceTest.cxx Modules/Nonunit/Review/test/itkDivideByConstantImageFilterTest.cxx Modules/Nonunit/Review/test/itkMultiplyByConstantImageFilterTest.cxx Modules/Nonunit/Review/test/itkReviewHeaderTest.cxx Modules/Nonunit/Review/test/itkSubtractConstantFromImageFilterTest.cxx Wrapping/WrapITK/Libraries/Review/itkAddConstantToImageFilter.wrap Wrapping/WrapITK/Libraries/Review/itkDivideByConstantImageFilter.wrap Wrapping/WrapITK/Libraries/Review/itkMultiplyByConstantImageFilter.wrap Wrapping/WrapITK/Libraries/Review/itkSubtractConstantFromImageFilter.wrap