18 #ifndef itkDivideImageFilter_h
19 #define itkDivideImageFilter_h
34 template<
typename TInput1,
typename TInput2,
typename TOutput >
48 return !( *
this != other );
51 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
55 return (TOutput)( A / B );
81 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
86 typename TInputImage1::PixelType,
87 typename TInputImage2::PixelType,
88 typename TOutputImage::PixelType > >
101 typename TInputImage1::PixelType,
102 typename TInputImage2::PixelType,
103 typename TOutputImage::PixelType >
121 #ifdef ITK_USE_CONCEPT_CHECKING
127 typename TInputImage2::PixelType,
128 typename TOutputImage::PixelType > ) );
143 itkGenericExceptionMacro(<<
"The constant value used as denominator should not be set to zero");
153 void operator=(const
Self &) ITK_DELETE_FUNCTION;
virtual void GenerateData() override
Base class for all process objects that output image data.
bool operator==(const Div &other) const
SimpleDataObjectDecorator< Input2ImagePixelType > DecoratedInput2ImagePixelType
SmartPointer< const Self > ConstPointer
void GenerateData() override
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
bool AlmostEquals(T1 x1, T2 x2)
Provide consistent equality checks between values of potentially different scalar or complex types...
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Define additional traits for native types such as int or float.
bool operator!=(const Div &) const
bool NotAlmostEquals(T1 x1, T2 x2)
#define itkConceptMacro(name, concept)
SmartPointer< Self > Pointer
Implements pixel-wise generic operation of two images, or of an image and a constant.
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::Div< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
Pixel-wise division of two images.
virtual ~DivideImageFilter()