MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ generate_window()

std::vector< double > MayaFlux::Nodes::Generator::generate_window ( uint32_t  size,
WindowType  window_type 
)

Generate window coefficients using C++20 ranges.

Parameters
sizeWindow size
window_typeType of window function
Returns
Window coefficients

Definition at line 67 of file WindowGenerator.cpp.

68{
69 switch (window_type) {
70 case WindowType::HAMMING:
71 return HammingWindow(size);
72 case WindowType::BLACKMAN:
73 return BlackmanWindow(size);
74 case WindowType::HANNING:
75 default:
76 return HannWindow(size);
77 }
78}
std::vector< double > BlackmanWindow(size_t length)
Creates a Blackman window function.
std::vector< double > HammingWindow(size_t length)
Creates a Hamming window function.
std::vector< double > HannWindow(size_t length)
Creates a Hann window function.

References BLACKMAN, BlackmanWindow(), HAMMING, HammingWindow(), HANNING, and HannWindow().

Referenced by MayaFlux::apply_window(), MayaFlux::Yantra::process_spectral_windows(), MayaFlux::Yantra::transform_window(), and MayaFlux::Yantra::transform_window().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: