17 #ifndef QM_DSP_SEGMENTER_H 18 #define QM_DSP_SEGMENTER_H 46 virtual void initialise(
int samplerate) = 0;
47 virtual int getWindowsize() = 0;
48 virtual int getHopsize() = 0;
49 virtual void extractFeatures(
const double* samples,
int nsamples) = 0;
50 virtual void segment() = 0;
51 virtual void segment(
int m) = 0;
52 virtual void clear() { features.clear(); }
const Segmentation & getSegmentation() const
std::vector< std::vector< double > > features
Segmentation segmentation
std::ostream & operator<<(std::ostream &os, const Segmentation &s)
std::vector< Segment > segments