18 #ifndef __itkModulusImageFilter_h
19 #define __itkModulusImageFilter_h
32 template<
typename TInput1,
typename TInput2,
typename TOutput >
46 return !( *
this != other );
49 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
53 return static_cast< TOutput
>( A % B );
70 template<
typename TInput,
typename TOutput >
89 return !( *
this != other );
94 TOutput result =
static_cast< TOutput
>( x %
m_Dividend );
118 template<
typename TInputImage1,
typename TInputImage2 = TInputImage1,
typename TOutputImage = TInputImage1 >
123 typename TInputImage1::PixelType,
124 typename TInputImage2::PixelType,
125 typename TOutputImage::PixelType > >
132 typename TInputImage1::PixelType,
133 typename TInputImage2::PixelType,
155 #ifdef ITK_USE_CONCEPT_CHECKING
173 #ifndef ITK_MANUAL_INSTANTIATION
174 #include "itkModulusImageFilter.hxx"
virtual ~ModulusImageFilter()
bool operator!=(const Modulus &) const
void operator=(const Self &)
Computes the modulus (x % dividend) pixel-wise.
TOutputImage::PixelType OutputPixelType
virtual void SetConstant2(const Input2ImagePixelType &input2)
SmartPointer< Self > Pointer
bool operator==(const Modulus &other) const
Base class for all process objects that output image data.
SmartPointer< const Self > ConstPointer
virtual void SetDividend(InputPixelType _arg)
TInputImage1::PixelType InputPixelType
virtual const Input2ImagePixelType & GetConstant2() const
virtual const InputPixelType & GetDividend() const
Implements pixel-wise generic operation on one image.
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::Modulus< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
Implements pixel-wise generic operation of two images, or of an image and a constant.
TOutput operator()(const TInput1 &A, const TInput2 &B) const