comparison dsp/segmentation/cluster_segmenter.h @ 243:dc30e3864ceb

* merge in segmentation code from soundbite plugin/library repository
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 09 Jan 2008 10:46:25 +0000
parents
children 8bdbda7fb893
comparison
equal deleted inserted replaced
242:6060110dc3c6 243:dc30e3864ceb
1 #ifndef _CLUSTER_SEGMENTER_H
2 #define _CLUSTER_SEGMENTER_H
3
4 /*
5 * cluster_segmenter.h
6 * soundbite
7 *
8 * Created by Mark Levy on 06/04/2006.
9 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. All rights reserved.
10 *
11 */
12
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <math.h>
16 #include <float.h>
17
18 #include "segment.h"
19 #include "cluster_melt.h"
20 #include "hmm.h"
21 #include "pca.h"
22
23 /* 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);
25
26 /* converts constant-Q features to normalised chroma */
27 void cq2chroma(double** cq, int nframes, int ncoeff, int bins, double** chroma);
28
29 void create_histograms(int* x, int nx, int m, int hlen, double* h);
30
31 void cluster_segment(int* q, double** features, int frames_read, int feature_length, int nHMM_states,
32 int histogram_length, int nclusters, int neighbour_limit);
33
34 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);
36
37
38 #endif