Mercurial > hg > qm-dsp
comparison dsp/segmentation/cluster_segmenter.h @ 480:175e51ae78eb
Untabify, indent, tidy
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 31 May 2019 10:53:39 +0100 |
parents | d5014ab8b0e5 |
children | d48276a3ae24 |
comparison
equal
deleted
inserted
replaced
479:7e52c034cf62 | 480:175e51ae78eb |
---|---|
1 #ifndef _CLUSTER_SEGMENTER_H | |
2 #define _CLUSTER_SEGMENTER_H | |
3 | |
4 /* | 1 /* |
5 * cluster_segmenter.h | 2 * cluster_segmenter.h |
6 * soundbite | 3 * soundbite |
7 * | 4 * |
8 * Created by Mark Levy on 06/04/2006. | 5 * Created by Mark Levy on 06/04/2006. |
14 License, or (at your option) any later version. See the file | 11 License, or (at your option) any later version. See the file |
15 COPYING included with this distribution for more information. | 12 COPYING included with this distribution for more information. |
16 * | 13 * |
17 */ | 14 */ |
18 | 15 |
16 #ifndef _CLUSTER_SEGMENTER_H | |
17 #define _CLUSTER_SEGMENTER_H | |
18 | |
19 #include <stdio.h> | 19 #include <stdio.h> |
20 #include <stdlib.h> | 20 #include <stdlib.h> |
21 #include <math.h> | 21 #include <math.h> |
22 #include <float.h> | 22 #include <float.h> |
23 | 23 |
28 | 28 |
29 #ifdef __cplusplus | 29 #ifdef __cplusplus |
30 extern "C" { | 30 extern "C" { |
31 #endif | 31 #endif |
32 | 32 |
33 /* applies MPEG-7 normalisation to constant-Q features, storing normalised envelope (norm) in last feature dimension */ | 33 /* applies MPEG-7 normalisation to constant-Q features, |
34 storing normalised envelope (norm) in last feature dimension */ | |
34 void mpeg7_constq(double** features, int nframes, int ncoeff); | 35 void mpeg7_constq(double** features, int nframes, int ncoeff); |
35 | 36 |
36 /* converts constant-Q features to normalised chroma */ | 37 /* converts constant-Q features to normalised chroma */ |
37 void cq2chroma(double** cq, int nframes, int ncoeff, int bins, double** chroma); | 38 void cq2chroma(double** cq, int nframes, int ncoeff, int bins, double** chroma); |
38 | 39 |
39 void create_histograms(int* x, int nx, int m, int hlen, double* h); | 40 void create_histograms(int* x, int nx, int m, int hlen, double* h); |
40 | 41 |
41 void cluster_segment(int* q, double** features, int frames_read, int feature_length, int nHMM_states, | 42 void cluster_segment(int* q, double** features, int frames_read, |
42 int histogram_length, int nclusters, int neighbour_limit); | 43 int feature_length, int nHMM_states, |
44 int histogram_length, int nclusters, | |
45 int neighbour_limit); | |
43 | 46 |
44 void constq_segment(int* q, double** features, int frames_read, int bins, int ncoeff, int feature_type, | 47 void constq_segment(int* q, double** features, int frames_read, |
45 int nHMM_states, int histogram_length, int nclusters, int neighbour_limit); | 48 int bins, int ncoeff, int feature_type, |
49 int nHMM_states, int histogram_length, | |
50 int nclusters, int neighbour_limit); | |
46 | 51 |
47 #ifdef __cplusplus | 52 #ifdef __cplusplus |
48 } | 53 } |
49 #endif | 54 #endif |
50 | 55 |