Mercurial > hg > qm-dsp
diff dsp/segmentation/cluster_segmenter.c @ 58:d72fcd34d9a7
* Fixes to problems shown up by vamp-plugin-tester.
Still not all plugins pass all tests, though
author | cannam |
---|---|
date | Mon, 23 Mar 2009 16:28:53 +0000 |
parents | 6fc20388d29e |
children | e5907ae6de17 |
line wrap: on
line diff
--- a/dsp/segmentation/cluster_segmenter.c Fri Feb 27 13:07:22 2009 +0000 +++ b/dsp/segmentation/cluster_segmenter.c Mon Mar 23 16:28:53 2009 +0000 @@ -161,10 +161,10 @@ /* train the model */ hmm_train(features, frames_read, model); - +/* printf("\n\nafter training:\n"); hmm_print(model); - +*/ /* decode the hidden state sequence */ viterbi_decode(features, frames_read, model, q); hmm_close(model); @@ -174,10 +174,12 @@ /*****************************/ +/* fprintf(stderr, "HMM state sequence:\n"); for (i = 0; i < frames_read; i++) fprintf(stderr, "%d ", q[i]); fprintf(stderr, "\n\n"); +*/ /* create histograms of states */ double* h = (double*) malloc(frames_read*nHMM_states*sizeof(double)); /* vector in row major order */ @@ -209,12 +211,12 @@ if (feature_type == FEATURE_TYPE_CONSTQ) { - fprintf(stderr, "Converting to dB and normalising...\n"); - +/* fprintf(stderr, "Converting to dB and normalising...\n"); + */ mpeg7_constq(features, frames_read, ncoeff); - +/* fprintf(stderr, "Running PCA...\n"); - +*/ /* do PCA on the features (but not the envelope) */ int ncomponents = 20; pca_project(features, frames_read, ncoeff, ncomponents); @@ -255,8 +257,9 @@ if (feature_type == FEATURE_TYPE_CHROMA) { +/* fprintf(stderr, "Converting to chroma features...\n"); - +*/ /* convert constant-Q to normalised chroma features */ chroma = (double**) malloc(frames_read*sizeof(double*)); for (i = 0; i < frames_read; i++)