6#include <Common/assertion.h>
20template<
typename Value>
26 Value
evaluate(Value x, Value y)
const override;
31 Value blackmanHarris1D(Value n)
const;
34template<
typename Value>
36 : m_reciRadius(radius > Value(0) ? Value(1) / radius : Value(0))
38 PH_ASSERT(radius > Value(0));
41template<
typename Value>
44 const Value nx = (x * m_reciRadius + Value(1.0)) * Value(0.5);
45 const Value ny = (y * m_reciRadius + Value(1.0)) * Value(0.5);
47 return blackmanHarris1D(nx) * blackmanHarris1D(ny);
50template<
typename Value>
Blackman-Harris window function. A window function similar to Gaussian function in shape....
Definition TBlackmanHarris2D.h:22
TBlackmanHarris2D(Value radius)
Definition TBlackmanHarris2D.h:35
Value evaluate(Value x, Value y) const override
Definition TBlackmanHarris2D.h:42
Definition TMathFunction2D.h:8
constexpr T pi
Value of .
Definition constant.h:15
Math functions and utilities.
Definition TransformInfo.h:10