18 #ifndef itkSigmoidImageFilter_h
19 #define itkSigmoidImageFilter_h
50 template<
typename TInput,
typename TOutput >
77 return !( *
this != other );
82 const double x = (
static_cast< double >( A ) -
m_Beta ) /
m_Alpha;
83 const double e = 1.0 / ( 1.0 + std::exp(-x) );
87 return static_cast< TOutput
>( v );
138 template<
typename TInputImage,
typename TOutputImage >
143 typename TInputImage::PixelType,
144 typename TOutputImage::PixelType > >
152 TInputImage, TOutputImage,
154 typename TOutputImage::PixelType > >;
227 #ifdef ITK_USE_CONCEPT_CHECKING
void SetOutputMaximum(TOutput max)
Define numeric traits for std::vector.
typename TOutputImage::PixelType OutputPixelType
bool operator==(const Sigmoid &other) const
TOutput operator()(const TInput &A) const
TOutput GetOutputMinimum() const
void SetOutputMinimum(TOutput min)
void SetAlpha(double alpha)
TOutput GetOutputMaximum() const
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
OutputPixelType GetOutputMaximum() const
bool ExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Return the result of an exact comparison between two scalar values of potetially different types...
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)
~SigmoidImageFilter() override=default
bool operator!=(const Sigmoid &other) const
SigmoidImageFilter()=default
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
virtual void Modified() const
FunctorType & GetFunctor()
Implements pixel-wise generic operation on one image.
static constexpr double e
The base of the natural logarithm or Euler's number
void SetOutputMaximum(OutputPixelType max)
void SetBeta(double beta)
OutputPixelType GetOutputMinimum() const
#define itkConceptMacro(name, concept)