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");
Base class for all process objects that output image data.
bool operator==(const Div &other) const
SimpleDataObjectDecorator< Input2ImagePixelType > DecoratedInput2ImagePixelType
SmartPointer< const Self > ConstPointer
DataObject * GetInput(const DataObjectIdentifierType &key)
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
#define itkConceptMacro(name, concept)
SmartPointer< Self > Pointer
virtual void GenerateData() ITK_OVERRIDE
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()