18#ifndef itkDivideOrZeroOutImageFilter_h
19#define itkDivideOrZeroOutImageFilter_h
39template <
typename TInputImage1,
typename TInputImage2 = TInputImage1,
typename TOutputImage = TInputImage1>
53 typename TInputImage2::PixelType,
54 typename TOutputImage::PixelType>;
70 Superclass::PrintSelf(os, indent);
71 os << indent <<
"Threshold: " << GetThreshold() << std::endl;
82 this->GetFunctor().m_Threshold = threshold;
89 return this->GetFunctor().m_Threshold;
100 this->GetFunctor().m_Constant = constant;
107 return this->GetFunctor().m_Constant;
118 this->SetFunctor(this->GetFunctor());
Implements pixel-wise generic operation of two images, or of an image and a constant.
DenominatorPixelType GetThreshold() const
DivideOrZeroOutImageFilter()=default
typename TInputImage1::PixelType NumeratorPixelType
void SetThreshold(DenominatorPixelType threshold)
typename TInputImage2::PixelType DenominatorPixelType
void PrintSelf(std::ostream &os, Indent indent) const override
FunctorType & GetFunctor()
typename TOutputImage::PixelType OutputPixelType
void BeforeThreadedGenerateData() override
~DivideOrZeroOutImageFilter() override=default
void SetConstant(OutputPixelType constant)
OutputPixelType GetConstant() const
Control indentation during Print() invocation.
Light weight base class for most itk classes.
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....