18 #ifndef itkDivideOrZeroOutImageFilter_h
19 #define itkDivideOrZeroOutImageFilter_h
30 template<
typename TNumerator,
typename TDenominator=TNumerator,
typename TOutput=TNumerator >
44 return !(*
this == other);
54 inline TOutput
operator()(
const TNumerator & n,
const TDenominator & d )
60 return static_cast< TOutput
>( n ) / static_cast< TOutput >( d );
78 template<
typename TInputImage1,
79 typename TInputImage2=TInputImage1,
80 typename TOutputImage=TInputImage1 >
83 Functor::DivideOrZeroOut<
84 typename TInputImage1::PixelType,
85 typename TInputImage2::PixelType,
86 typename TOutputImage::PixelType > >
93 typename TInputImage1::PixelType,
94 typename TInputImage2::PixelType,
113 os << indent <<
"Threshold: " <<
GetThreshold() << std::endl;
155 void operator=(const
Self&) ITK_DELETE_FUNCTION;
TInputImage2::PixelType DenominatorPixelType
virtual ~DivideOrZeroOutImageFilter()
bool operator!=(const DivideOrZeroOut &other) const
void SetConstant(OutputPixelType constant)
SmartPointer< Self > Pointer
void SetThreshold(DenominatorPixelType threshold)
static const double e
The base of the natural logarithm or Euler's number
Base class for all process objects that output image data.
bool operator==(const DivideOrZeroOut &) const
virtual void PrintSelf(std::ostream &os, Indent indent) const override
FunctorType & GetFunctor()
DivideOrZeroOutImageFilter Self
TOutputImage::PixelType OutputPixelType
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
virtual void Modified() const
DivideOrZeroOutImageFilter()
TInputImage1::PixelType NumeratorPixelType
TOutput operator()(const TNumerator &n, const TDenominator &d)
OutputPixelType GetConstant() const
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::DivideOrZeroOut< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
DenominatorPixelType GetThreshold() const
void PrintSelf(std::ostream &os, Indent indent) const override
Implements pixel-wise generic operation of two images, or of an image and a constant.