Mercurial > hg > batch-feature-extraction-tool
view Source/SpectralContrast.h @ 13:a64055168b9b
Added XML Support
author | Geogaddi\David <d.m.ronan@qmul.ac.uk> |
---|---|
date | Fri, 05 Feb 2016 19:21:42 +0000 |
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