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 void SetBeta(
double beta)
176 if ( beta == this->GetFunctor().GetBeta() )
180 this->GetFunctor().SetBeta(beta);
186 if ( min == this->GetFunctor().GetOutputMinimum() )
190 this->GetFunctor().SetOutputMinimum(min);
196 if ( max == this->GetFunctor().GetOutputMaximum() )
200 this->GetFunctor().SetOutputMaximum(max);
204 #ifdef ITK_USE_CONCEPT_CHECKING
224 void operator=(
const Self &);