cluster_segmenter.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 /*
3  * cluster_segmenter.h
4  * soundbite
5  *
6  * Created by Mark Levy on 06/04/2006.
7  * Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
8 
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version. See the file
13  COPYING included with this distribution for more information.
14  *
15  */
16 
17 #ifndef QM_DSP_CLUSTER_SEGMENTER_H
18 #define QM_DSP_CLUSTER_SEGMENTER_H
19 
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <math.h>
23 #include <float.h>
24 
25 #include "segment.h"
26 #include "cluster_melt.h"
27 #include "hmm/hmm.h"
28 #include "maths/pca/pca.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /* applies MPEG-7 normalisation to constant-Q features,
35  storing normalised envelope (norm) in last feature dimension */
36 void mpeg7_constq(double** features, int nframes, int ncoeff);
37 
38 /* converts constant-Q features to normalised chroma */
39 void cq2chroma(double** cq, int nframes, int ncoeff, int bins, double** chroma);
40 
41 void create_histograms(int* x, int nx, int m, int hlen, double* h);
42 
43 void cluster_segment(int* q, double** features, int frames_read,
44  int feature_length, int nHMM_states,
45  int histogram_length, int nclusters,
46  int neighbour_limit);
47 
48 void constq_segment(int* q, double** features, int frames_read,
49  int bins, int ncoeff, int feature_type,
50  int nHMM_states, int histogram_length,
51  int nclusters, int neighbour_limit);
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif
void cluster_segment(int *q, double **features, int frames_read, int feature_length, int nHMM_states, int histogram_length, int nclusters, int neighbour_limit)
void constq_segment(int *q, double **features, int frames_read, int bins, int ncoeff, int feature_type, int nHMM_states, int histogram_length, int nclusters, int neighbour_limit)
void cq2chroma(double **cq, int nframes, int ncoeff, int bins, double **chroma)
void mpeg7_constq(double **features, int nframes, int ncoeff)
void create_histograms(int *x, int nx, int m, int hlen, double *h)