Mercurial > hg > batch-feature-extraction-tool
view Source/SpectralContrast.h @ 10:73852457b624
We now have a the spectral contrast feature
author | Geogaddi\David <d.m.ronan@qmul.ac.uk> |
---|---|
date | Fri, 14 Aug 2015 18:21:43 +0100 |
parents | |
children |
line wrap: on
line source
/* ============================================================================== SpectralContrast.h Created: 14 Aug 2015 12:21:29pm Author: David ============================================================================== */ #ifndef SPECTRALCONTRAST_H_INCLUDED #define SPECTRALCONTRAST_H_INCLUDED #include <vector> class SpectralContrast { public: void initSpectralContrastVariables(int frameSize, float sampleRate); void computeSpectralContrast(std::vector<float> spectrum, std::vector<float> &spectralContrast, std::vector<float> &valleys); private: std::vector<int> m_numberOfBinsInBands; int m_startAtBin; float m_neighbourRatio; }; #endif // SPECTRALCONTRAST_H_INCLUDED