comparison dsp/segmentation/cluster_segmenter.h @ 20:8bdbda7fb893

* First cut at properly integrating the segmenter and making it work right
author cannam
date Wed, 09 Jan 2008 16:50:04 +0000
parents 8e90a56b4b5f
children e5907ae6de17
comparison
equal deleted inserted replaced
19:d3a856b44c43 20:8bdbda7fb893
15 #include <math.h> 15 #include <math.h>
16 #include <float.h> 16 #include <float.h>
17 17
18 #include "segment.h" 18 #include "segment.h"
19 #include "cluster_melt.h" 19 #include "cluster_melt.h"
20 #include "hmm.h" 20 #include "hmm/hmm.h"
21 #include "pca.h" 21 #include "maths/pca/pca.h"
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
22 26
23 /* applies MPEG-7 normalisation to constant-Q features, storing normalised envelope (norm) in last feature dimension */ 27 /* applies MPEG-7 normalisation to constant-Q features, storing normalised envelope (norm) in last feature dimension */
24 void mpeg7_constq(double** features, int nframes, int ncoeff); 28 void mpeg7_constq(double** features, int nframes, int ncoeff);
25 29
26 /* converts constant-Q features to normalised chroma */ 30 /* converts constant-Q features to normalised chroma */
32 int histogram_length, int nclusters, int neighbour_limit); 36 int histogram_length, int nclusters, int neighbour_limit);
33 37
34 void constq_segment(int* q, double** features, int frames_read, int bins, int ncoeff, int feature_type, 38 void constq_segment(int* q, double** features, int frames_read, int bins, int ncoeff, int feature_type,
35 int nHMM_states, int histogram_length, int nclusters, int neighbour_limit); 39 int nHMM_states, int histogram_length, int nclusters, int neighbour_limit);
36 40
41 #ifdef __cplusplus
42 }
43 #endif
37 44
38 #endif 45 #endif