18 #ifndef __itkSigmoidImageFilter_h
19 #define __itkSigmoidImageFilter_h
49 template<
typename TInput,
typename 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 + std::exp(-x) );
86 return static_cast< TOutput
>( v );
137 template<
typename TInputImage,
typename TOutputImage >
142 typename TInputImage::PixelType,
143 typename TOutputImage::PixelType > >
149 TInputImage, TOutputImage,
224 #ifdef ITK_USE_CONCEPT_CHECKING
void SetOutputMaximum(TOutput max)
void operator=(const Self &)
bool operator==(const Sigmoid &other) const
SmartPointer< Self > Pointer
TOutput operator()(const TInput &A) const
TOutput GetOutputMinimum() const
void SetOutputMinimum(TOutput min)
void SetAlpha(double alpha)
TOutput GetOutputMaximum() const
OutputPixelType GetOutputMaximum() const
static const double e
The base of the natural logarithm or Euler's number
Base class for all process objects that output image data.
Computes the sigmoid function pixel-wise.
void SetOutputMinimum(OutputPixelType min)
void SetAlpha(double alpha)
void SetBeta(double beta)
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Sigmoid< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
bool operator!=(const Sigmoid &other) const
virtual void Modified() const
FunctorType & GetFunctor()
TOutputImage::PixelType OutputPixelType
SmartPointer< const Self > ConstPointer
virtual ~SigmoidImageFilter()
Implements pixel-wise generic operation on one image.
void SetOutputMaximum(OutputPixelType max)
void SetBeta(double beta)
OutputPixelType GetOutputMinimum() const
#define itkConceptMacro(name, concept)