64 Evaluate(
const TRealValueType & u)
const override
66 TRealValueType parameter = itk::Math::sqr(u / this->
m_Sigma);
67 TRealValueType envelope = std::exp(TRealValueType{ -0.5 } * parameter);
73 return envelope * std::sin(phase);
76 return envelope * std::cos(phase);
80 itkSetMacro(Sigma, TRealValueType);
81 itkGetConstMacro(Sigma, TRealValueType);
85 itkSetMacro(Frequency, TRealValueType);
86 itkGetConstMacro(Frequency, TRealValueType);
90 itkSetMacro(PhaseOffset, TRealValueType);
91 itkGetConstMacro(PhaseOffset, TRealValueType);
96 itkSetMacro(CalculateImaginaryPart,
bool);
97 itkGetConstMacro(CalculateImaginaryPart,
bool);
98 itkBooleanMacro(CalculateImaginaryPart);
105 this->
m_Sigma = TRealValueType{ 1.0 };
115 os << indent <<
"Sigma: " << this->
GetSigma() << std::endl;
116 os << indent <<
"Frequency: " << this->
GetFrequency() << std::endl;
117 os << indent <<
"PhaseOffset: " << this->
GetPhaseOffset() << std::endl;