Mercurial > hg > qm-dsp
diff dsp/segmentation/ClusterMeltSegmenter.cpp @ 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 | 00603b8a940f |
children | 6cb2b3cd5356 |
line wrap: on
line diff
--- a/dsp/segmentation/ClusterMeltSegmenter.cpp Fri Feb 27 13:07:22 2009 +0000 +++ b/dsp/segmentation/ClusterMeltSegmenter.cpp Mon Mar 23 16:28:53 2009 +0000 @@ -319,10 +319,12 @@ mfcc = 0; delete decimator; decimator = 0; - + + if (features.size() < histogramLength) return; +/* std::cerr << "ClusterMeltSegmenter::segment: have " << features.size() << " features with " << features[0].size() << " coefficients (ncoeff = " << ncoeff << ", ncomponents = " << ncomponents << ")" << std::endl; - +*/ // copy the features to a native array and use the existing C segmenter... double** arrFeatures = new double*[features.size()]; for (int i = 0; i < features.size(); i++)