18 #ifndef itkDivideOrZeroOutImageFilter_h
19 #define itkDivideOrZeroOutImageFilter_h
40 template<
typename TInputImage1,
41 typename TInputImage2=TInputImage1,
42 typename TOutputImage=TInputImage1 >
56 typename TInputImage2::PixelType,
57 typename TOutputImage::PixelType >;
73 os << indent <<
"Threshold: " <<
GetThreshold() << std::endl;
void PrintSelf(std::ostream &os, Indent indent) const override
void SetConstant(OutputPixelType constant)
void SetThreshold(DenominatorPixelType threshold)
typename TOutputImage::PixelType OutputPixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
FunctorType & GetFunctor()
void BeforeThreadedGenerateData() override
virtual const FunctorType & GetFunctor() const
Implements pixel-wise generic operation of two images, or of an image and a constant.
typename TInputImage1::PixelType NumeratorPixelType
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
virtual void Modified() const
void SetFunctor(const std::function< ConstRefFunctionType > &f)
OutputPixelType GetConstant() const
Functor::DivideOrZeroOut< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
~DivideOrZeroOutImageFilter() override=default
Control indentation during Print() invocation.
DenominatorPixelType GetThreshold() const
void PrintSelf(std::ostream &os, Indent indent) const override
DivideOrZeroOutImageFilter()=default
typename TInputImage2::PixelType DenominatorPixelType