Go to the documentation of this file.
18 #ifndef sitkUnsharpMaskImageFilter_h
19 #define sitkUnsharpMaskImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetSigmas(
double s) { this->m_Sigmas = std::vector<double>(3, s );
return *
this; }
76 SITK_RETURN_SELF_TYPE_HEADER
SetSigmas ( std::vector<double> Sigmas ) { this->m_Sigmas = std::move(Sigmas);
return *
this; }
81 std::vector<double>
GetSigmas()
const {
return this->m_Sigmas; }\
86 SITK_RETURN_SELF_TYPE_HEADER
SetAmount (
double Amount ) { this->m_Amount = Amount;
return *
this; }
91 double GetAmount()
const {
return this->m_Amount; }\
109 SITK_RETURN_SELF_TYPE_HEADER
ClampOn() {
return this->SetClamp(
true); }
110 SITK_RETURN_SELF_TYPE_HEADER
ClampOff() {
return this->SetClamp(
false); }
118 std::string
GetName()
const {
return std::string (
"UnsharpMaskImageFilter"); }
121 std::string ToString()
const;
133 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
141 std::vector<double> m_Sigmas{std::vector<double>(3, 1.0)};
143 double m_Amount{0.5};
145 double m_Threshold{0.0};
The Image class for SimpleITK.
std::vector< double > GetSigmas() const
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
typelist2::typelist< BasicPixelID< float >, BasicPixelID< double > > RealPixelIDTypeList
RealPixelIDTypeList PixelIDTypeList
double GetThreshold() const
std::string GetName() const
Image(Self::*)(const Image &image1) MemberFunctionType
Self & SetClamp(bool Clamp)
Self & SetAmount(double Amount)
Self & SetThreshold(double Threshold)
Self & SetSigmas(std::vector< double > Sigmas)
#define SITKBasicFilters_EXPORT
Image Threshold(Image &&image1, double lower=0.0, double upper=1.0, double outsideValue=0.0)
Set image values to a user-specified value if they are below, above, or outside threshold values.
The base interface for SimpleITK filters that take one input image.
Image UnsharpMask(const Image &image1, std::vector< double > sigmas=std::vector< double >(3, 1.0), double amount=0.5, double threshold=0.0, bool clamp=true)
Edge enhancement filter.
Image Clamp(Image &&image1, PixelIDValueEnum outputPixelType=itk::simple::sitkUnknown, double lowerBound=-std::numeric_limits< double >::max(), double upperBound=std::numeric_limits< double >::max())
Casts input pixels to output pixel type and clamps the output pixel values to a specified range.
Self & SetSigmas(double s)