Mercurial > hg > batch-feature-extraction-tool
view Source/SpectralContrast.h @ 14:636c989477e7
XML changes for Public.
author | Geogaddi\David <d.m.ronan@qmul.ac.uk> |
---|---|
date | Wed, 04 May 2016 11:02:59 +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