18#ifndef itkUnsharpMaskImageFilter_h
19#define itkUnsharpMaskImageFilter_h
54template <
typename TInputImage,
typename TOutputImage = TInputImage,
typename TInternalPrecision =
float>
120 SetSigma(
const typename SigmaArrayType::ValueType sigma)
128 itkSetMacro(Amount, TInternalPrecision);
129 itkGetConstMacro(Amount, TInternalPrecision);
134 itkSetMacro(Threshold, TInternalPrecision);
135 itkGetConstMacro(Threshold, TInternalPrecision);
140 itkSetMacro(Clamp,
bool);
141 itkGetConstMacro(Clamp,
bool);
142 itkBooleanMacro(Clamp);
174 template <
typename InPixelType,
typename FunctorRealType = TInternalPrecision,
typename OutPixelType = InPixelType>
206 operator()(
const InPixelType & v,
const FunctorRealType & s)
const
208 FunctorRealType diff = v - s;
209 FunctorRealType result;
235 return static_cast<OutPixelType
>(result);
241#ifndef ITK_MANUAL_INSTANTIATION
242# include "itkUnsharpMaskImageFilter.hxx"
Control indentation during Print() invocation.
static constexpr T NonpositiveMin()
static constexpr T max(const T &)
Implements transparent reference counting.
Computes the smoothing of an image by convolution with the Gaussian kernels implemented as IIR filter...
FixedArray< ScalarRealType, Self::ImageDimension > SigmaArrayType
OutPixelType operator()(const InPixelType &v, const FunctorRealType &s) const
FunctorRealType m_Threshold
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(UnsharpMaskingFunctor)
UnsharpMaskingFunctor(FunctorRealType amount, FunctorRealType threshold, bool clamp)
bool operator==(const UnsharpMaskingFunctor &other) const
typename GaussianType::SigmaArrayType SigmaArrayType
SmartPointer< Self > Pointer
SmoothingRecursiveGaussianImageFilter< TInputImage, Image< TInternalPrecision, TOutputImage::ImageDimension > > GaussianType
typename TOutputImage::PixelType OutputPixelType
static constexpr unsigned int InputImageDimension
static constexpr unsigned int ImageDimension
TInternalPrecision m_Threshold
ImageToImageFilter< TInputImage, TOutputImage > Superclass
~UnsharpMaskImageFilter() override=default
typename TInputImage::InternalPixelType InputInternalPixelType
typename TInputImage::RegionType InputImageRegionType
TInternalPrecision InternalPrecisionType
virtual void SetSigmas(SigmaArrayType _arg)
SmartPointer< const Self > ConstPointer
void GenerateData() override
void SetSigma(const typename SigmaArrayType::ValueType sigma)
typename InputImageType::Pointer InputImagePointer
UnsharpMaskImageFilter Self
typename TInputImage::PixelType InputPixelType
typename TOutputImage::InternalPixelType OutputInternalPixelType
TInternalPrecision m_Amount
TOutputImage OutputImageType
void GenerateInputRequestedRegion() override
typename TOutputImage::RegionType OutputImageRegionType
TInputImage InputImageType
void PrintSelf(std::ostream &os, Indent indent) const override
void VerifyPreconditions() const override
Verifies that the process object has been configured correctly, that all required inputs are set,...
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
constexpr TContainer MakeFilled(typename TContainer::const_reference value)