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>>
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
static constexpr T max(const T &)
static constexpr T min(const T &)
virtual void Modified() const
void SetOutputMinimum(OutputPixelType min)
SigmoidImageFilter()=default
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Sigmoid< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
OutputPixelType GetOutputMaximum() const
SmartPointer< const Self > ConstPointer
void SetOutputMaximum(OutputPixelType max)
~SigmoidImageFilter() override=default
OutputPixelType GetOutputMinimum() const
SmartPointer< Self > Pointer
void SetBeta(double beta)
void SetAlpha(double alpha)
typename TOutputImage::PixelType OutputPixelType
Implements transparent reference counting.
UnaryFunctorImageFilter()
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.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....