18#ifndef itkSigmoidImageFilter_h
19#define itkSigmoidImageFilter_h
52template <
typename TInput,
typename TOutput>
81 const double e = 1.0 / (1.0 + std::exp(-x));
84 return static_cast<TOutput
>(v);
143template <
typename TInputImage,
typename TOutputImage>
147 Functor::Sigmoid<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
238#ifdef ITK_USE_CONCEPT_CHECKING
void SetOutputMinimum(TOutput min)
TOutput GetOutputMinimum() const
void SetOutputMaximum(TOutput max)
bool operator==(const Sigmoid &other) const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Sigmoid)
void SetBeta(double beta)
TOutput GetOutputMaximum() const
void SetAlpha(double alpha)
TOutput operator()(const TInput &A) const
Base class for all process objects that output image data.
static constexpr T max(const T &)
static constexpr T min(const T &)
virtual void Modified() const
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Computes the sigmoid function pixel-wise.
void SetOutputMinimum(OutputPixelType min)
SigmoidImageFilter()=default
OutputPixelType GetOutputMaximum() const
void SetOutputMaximum(OutputPixelType max)
~SigmoidImageFilter() override=default
OutputPixelType GetOutputMinimum() const
void SetBeta(double beta)
void SetAlpha(double alpha)
typename TOutputImage::PixelType OutputPixelType
Implements pixel-wise generic operation on one image.
FunctorType & GetFunctor()
#define itkConceptMacro(name, concept)
bool ExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Return the result of an exact comparison between two scalar values of potentially different types.
static constexpr double e
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....