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

◆ apply_window() [2/2]

MAYAFLUX_API void MayaFlux::apply_window ( std::vector< double > &  data,
const std::string &  window_type = "hann" 
)

Apply window function to single-channel data (in-place)

Parameters
dataInput data (modified in-place)
window_type"hann", "hamming", "blackman", "rectangular" (default: "hann")

Definition at line 826 of file Yantra.cpp.

827{
828 if (window_type == "rectangular" || window_type == "rect") {
829 Kinesis::Discrete::apply_rectangular(data);
830 return;
831 }
832 if (window_type == "hamming") {
833 Kinesis::Discrete::apply_hamming(data);
834 return;
835 }
836 if (window_type == "blackman") {
837 Kinesis::Discrete::apply_blackman(data);
838 return;
839 }
840
841 Kinesis::Discrete::apply_hann(data);
842}

References MayaFlux::Kinesis::Discrete::apply_blackman(), MayaFlux::Kinesis::Discrete::apply_hamming(), MayaFlux::Kinesis::Discrete::apply_hann(), and MayaFlux::Kinesis::Discrete::apply_rectangular().

Referenced by apply_window(), and apply_window_channels().

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