19 #ifndef rtkSoftThresholdImageFilter_h 20 #define rtkSoftThresholdImageFilter_h 43 template <
class TInput,
class TOutput>
68 return !(*
this != other);
74 return (itk::Math::sgn(A) * std::max((TInput)
itk::Math::abs(A) - m_Threshold, (TInput)0.0));
82 template <
class TInputImage,
class TOutputImage>
87 Functor::SoftThreshold<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
106 #ifdef itkOverrideGetNameOfClassMacro 124 #ifdef ITK_USE_CONCEPT_CHECKING 141 #ifndef ITK_MANUAL_INSTANTIATION 142 # include "rtkSoftThresholdImageFilter.hxx"
bool operator==(const SoftThreshold &other) const
bool operator!=(const SoftThreshold &other) const
typename TOutputImage::PixelType OutputPixelType
typename TInputImage::PixelType InputPixelType
void SetThreshold(const TInput &thresh)
Soft thresholds an image.
itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::SoftThreshold< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
#define itkConceptMacro(name, concept)
TOutput operator()(const TInput &A) const