Mercurial > hg > qm-dsp
comparison dsp/segmentation/cluster_segmenter.h @ 245:cdfd0948a852
* First cut at properly integrating the segmenter and making it work right
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 09 Jan 2008 16:50:04 +0000 |
parents | dc30e3864ceb |
children | e5907ae6de17 |
comparison
equal
deleted
inserted
replaced
244:f599563a4663 | 245:cdfd0948a852 |
---|---|
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 |