18 #ifndef __itkSigmoidImageFilter_h
19 #define __itkSigmoidImageFilter_h
49 template<
class TInput,
class TOutput >
76 return !( *
this != other );
81 const double x = (
static_cast< double >( A ) -
m_Beta ) /
m_Alpha;
82 const double e = 1.0 / ( 1.0 + vcl_exp(-x) );
86 return static_cast< TOutput
>( v );
137 template<
class TInputImage,
class TOutputImage >
142 typename TInputImage::PixelType,
143 typename TOutputImage::PixelType > >
149 TInputImage, TOutputImage,
164 void SetAlpha(
double alpha)
166 if ( alpha == this->GetFunctor().GetAlpha() )
170 this->GetFunctor().SetAlpha(alpha);
174 double GetAlpha()
const
176 return this->GetFunctor().GetAlpha();
179 void SetBeta(
double beta)
181 if ( beta == this->GetFunctor().GetBeta() )
185 this->GetFunctor().SetBeta(beta);
189 double GetBeta()
const
191 return this->GetFunctor().GetBeta();
196 if ( min == this->GetFunctor().GetOutputMinimum() )
200 this->GetFunctor().SetOutputMinimum(min);
206 return this->GetFunctor().GetOutputMinimum();
211 if ( max == this->GetFunctor().GetOutputMaximum() )
215 this->GetFunctor().SetOutputMaximum(max);
221 return this->GetFunctor().GetOutputMaximum();
224 #ifdef ITK_USE_CONCEPT_CHECKING
246 void operator=(
const Self &);