18 #ifndef itkDivideImageFilter_h
19 #define itkDivideImageFilter_h
33 template<
typename TInput1,
typename TInput2,
typename TOutput >
47 return !( *
this != other );
50 inline TOutput
operator()(
const TInput1 & A,
const TInput2 & B)
const
52 if ( B != (TInput2)0 )
54 return (TOutput)( A / B );
80 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
85 typename TInputImage1::PixelType,
86 typename TInputImage2::PixelType,
87 typename TOutputImage::PixelType > >
100 typename TInputImage1::PixelType,
101 typename TInputImage2::PixelType,
102 typename TOutputImage::PixelType >
120 #ifdef ITK_USE_CONCEPT_CHECKING
126 typename TInputImage2::PixelType,
127 typename TOutputImage::PixelType > ) );
142 itkGenericExceptionMacro(<<
"The constant value used as denominator should not be set to zero");
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.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
bool operator!=(const Div &) const
#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.
void operator=(const Self &)
virtual ~DivideImageFilter()