18 #ifndef itkGaborKernelFunction_h
19 #define itkGaborKernelFunction_h
49 template<
typename TRealValueType >
65 TRealValueType
Evaluate(
const TRealValueType & u)
const ITK_OVERRIDE
68 TRealValueType envelope = std::exp(static_cast< TRealValueType >(-0.5) * parameter);
75 return envelope * std::sin(phase);
79 return envelope * std::cos(phase);
84 itkSetMacro(Sigma, TRealValueType);
85 itkGetConstMacro(Sigma, TRealValueType);
89 itkSetMacro(Frequency, TRealValueType);
90 itkGetConstMacro(Frequency, TRealValueType);
94 itkSetMacro(PhaseOffset, TRealValueType);
95 itkGetConstMacro(PhaseOffset, TRealValueType);
100 itkSetMacro(CalculateImaginaryPart,
bool);
101 itkGetConstMacro(CalculateImaginaryPart,
bool);
102 itkBooleanMacro(CalculateImaginaryPart);
110 this->
m_Frequency =
static_cast<TRealValueType
>(0.4);
118 os << indent <<
"Sigma: " << this->
GetSigma() << std::endl;
119 os << indent <<
"Frequency: " << this->
GetFrequency() << std::endl;
120 os << indent <<
"PhaseOffset: " << this->
GetPhaseOffset() << std::endl;
Gabor kernel used for various computer vision tasks.
SmartPointer< Self > Pointer
~GaborKernelFunction() override
void PrintSelf(std::ostream &os, Indent indent) const override
static ITK_CONSTEXPR_VAR double pi
virtual TRealValueType GetSigma() const
TRealValueType m_PhaseOffset
Kernel used for density estimation and nonparameteric regression.
KernelFunctionBase< TRealValueType > Superclass
virtual TRealValueType GetFrequency() const
bool m_CalculateImaginaryPart
TRealValueType Evaluate(const TRealValueType &u) const override
virtual bool GetCalculateImaginaryPart() const
TRealValueType m_Frequency
virtual TRealValueType GetPhaseOffset() const
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.