Mercurial > hg > batch-feature-extraction-tool
view Source/SpectralContrast.h @ 11:be889912d38e
Updates feature name index
author | Geogaddi\David <d.m.ronan@qmul.ac.uk> |
---|---|
date | Fri, 14 Aug 2015 18:33:45 +0100 |
parents | 73852457b624 |
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