annotate dsp/segmentation/cluster_segmenter.h @ 84:e5907ae6de17

* Add GPL and README; some tidying
author Chris Cannam
date Mon, 13 Dec 2010 14:55:28 +0000
parents 8bdbda7fb893
children 175e51ae78eb
rev   line source
cannam@18 1 #ifndef _CLUSTER_SEGMENTER_H
cannam@18 2 #define _CLUSTER_SEGMENTER_H
cannam@18 3
cannam@18 4 /*
cannam@18 5 * cluster_segmenter.h
cannam@18 6 * soundbite
cannam@18 7 *
cannam@18 8 * Created by Mark Levy on 06/04/2006.
Chris@84 9 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
Chris@84 10
Chris@84 11 This program is free software; you can redistribute it and/or
Chris@84 12 modify it under the terms of the GNU General Public License as
Chris@84 13 published by the Free Software Foundation; either version 2 of the
Chris@84 14 License, or (at your option) any later version. See the file
Chris@84 15 COPYING included with this distribution for more information.
cannam@18 16 *
cannam@18 17 */
cannam@18 18
cannam@18 19 #include <stdio.h>
cannam@18 20 #include <stdlib.h>
cannam@18 21 #include <math.h>
cannam@18 22 #include <float.h>
cannam@18 23
cannam@18 24 #include "segment.h"
cannam@18 25 #include "cluster_melt.h"
cannam@20 26 #include "hmm/hmm.h"
cannam@20 27 #include "maths/pca/pca.h"
cannam@20 28
cannam@20 29 #ifdef __cplusplus
cannam@20 30 extern "C" {
cannam@20 31 #endif
cannam@18 32
cannam@18 33 /* applies MPEG-7 normalisation to constant-Q features, storing normalised envelope (norm) in last feature dimension */
cannam@18 34 void mpeg7_constq(double** features, int nframes, int ncoeff);
cannam@18 35
cannam@18 36 /* converts constant-Q features to normalised chroma */
cannam@18 37 void cq2chroma(double** cq, int nframes, int ncoeff, int bins, double** chroma);
cannam@18 38
cannam@18 39 void create_histograms(int* x, int nx, int m, int hlen, double* h);
cannam@18 40
cannam@18 41 void cluster_segment(int* q, double** features, int frames_read, int feature_length, int nHMM_states,
cannam@18 42 int histogram_length, int nclusters, int neighbour_limit);
cannam@18 43
cannam@18 44 void constq_segment(int* q, double** features, int frames_read, int bins, int ncoeff, int feature_type,
cannam@18 45 int nHMM_states, int histogram_length, int nclusters, int neighbour_limit);
cannam@18 46
cannam@20 47 #ifdef __cplusplus
cannam@20 48 }
cannam@20 49 #endif
cannam@18 50
cannam@20 51 #endif