18 #ifndef __itkDivideOrZeroOutImageFilter_h
19 #define __itkDivideOrZeroOutImageFilter_h
29 template<
class TNumerator,
class TDenominator=TNumerator,
class TOutput=TNumerator >
43 return !(*
this == other);
53 inline TOutput
operator()(
const TNumerator & n,
const TDenominator & d )
59 return static_cast< TOutput
>( n ) / static_cast< TOutput >( d );
77 template<
typename TInputImage1,
78 typename TInputImage2=TInputImage1,
79 typename TOutputImage=TInputImage1 >
82 Functor::DivideOrZeroOut<
83 typename TInputImage1::PixelType,
84 typename TInputImage2::PixelType,
85 typename TOutputImage::PixelType > >
92 typename TInputImage1::PixelType,
93 typename TInputImage2::PixelType,
109 void PrintSelf(std::ostream& os,
Indent indent)
const
111 Superclass::PrintSelf(os, indent);
112 os << indent <<
"Threshold: " << GetThreshold() << std::endl;
120 if ( threshold != this->GetFunctor().m_Threshold )
122 this->GetFunctor().m_Threshold = threshold;
128 return this->GetFunctor().m_Threshold;
136 if ( constant != this->GetFunctor().m_Constant )
138 this->GetFunctor().m_Constant = constant;
144 return this->GetFunctor().m_Constant;
154 void operator=(
const Self&);