# Binary Modulus Image Filter

Bradley Lowekamp
2012-11-20
ENH: Convert the Modulus filter to standard binary filter. By converting to a BinaryFunctor filter the ModulusImageFilter can take a constant for either the first argument or the second thanks to the generalization for the BinaryFunctor. And the additional functionality of being able to operate on two images is also gained.

The ModuleTranform functor has been deprecated.

Additionally,the second template argument of the ModulusImageFilter has changed it's purpose to indicate the type of the second parameter to the Modulus operator. Note: If only one template parameter was previously provided to the filter, no change is required.
typedef itk::ModulusImageFilter<InputImageType,OutputImageType> FilterType;
typedef itk::ModulusImageFilter<InputImageType,InputImage2Type,OutputImageType> FilterType;
Ic0b796babcc4be6bbc3a989661383a4ec98f94cc
Modules/Filtering/ImageIntensity/include/itkModulusImageFilter.h Modules/Filtering/ImageIntensity/include/itkModulusImageFilter.hxx