1 #ifndef _CLUSTER_SEGMENTER_H
2 #define _CLUSTER_SEGMENTER_H
8 * Created by Mark Levy on 06/04/2006.
9 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License as
13 published by the Free Software Foundation; either version 2 of the
14 License, or (at your option) any later version. See the file
15 COPYING included with this distribution for more information.
25 #include "cluster_melt.h"
27 #include "maths/pca/pca.h"
33 /* applies MPEG-7 normalisation to constant-Q features, storing normalised envelope (norm) in last feature dimension */
34 void mpeg7_constq(double** features, int nframes, int ncoeff);
36 /* converts constant-Q features to normalised chroma */
37 void cq2chroma(double** cq, int nframes, int ncoeff, int bins, double** chroma);
39 void create_histograms(int* x, int nx, int m, int hlen, double* h);
41 void cluster_segment(int* q, double** features, int frames_read, int feature_length, int nHMM_states,
42 int histogram_length, int nclusters, int neighbour_limit);
44 void constq_segment(int* q, double** features, int frames_read, int bins, int ncoeff, int feature_type,
45 int nHMM_states, int histogram_length, int nclusters, int neighbour_limit);