Mercurial > hg > qm-dsp
comparison dsp/segmentation/ClusterMeltSegmenter.cpp @ 283:5e125f030287
* Fixes to problems shown up by vamp-plugin-tester.
Still not all plugins pass all tests, though
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 23 Mar 2009 16:28:53 +0000 |
parents | a63c7b6191b5 |
children | 6cb2b3cd5356 |
comparison
equal
deleted
inserted
replaced
282:2703b3437aee | 283:5e125f030287 |
---|---|
317 constq = 0; | 317 constq = 0; |
318 delete mfcc; | 318 delete mfcc; |
319 mfcc = 0; | 319 mfcc = 0; |
320 delete decimator; | 320 delete decimator; |
321 decimator = 0; | 321 decimator = 0; |
322 | 322 |
323 if (features.size() < histogramLength) return; | |
324 /* | |
323 std::cerr << "ClusterMeltSegmenter::segment: have " << features.size() | 325 std::cerr << "ClusterMeltSegmenter::segment: have " << features.size() |
324 << " features with " << features[0].size() << " coefficients (ncoeff = " << ncoeff << ", ncomponents = " << ncomponents << ")" << std::endl; | 326 << " features with " << features[0].size() << " coefficients (ncoeff = " << ncoeff << ", ncomponents = " << ncomponents << ")" << std::endl; |
325 | 327 */ |
326 // copy the features to a native array and use the existing C segmenter... | 328 // copy the features to a native array and use the existing C segmenter... |
327 double** arrFeatures = new double*[features.size()]; | 329 double** arrFeatures = new double*[features.size()]; |
328 for (int i = 0; i < features.size(); i++) | 330 for (int i = 0; i < features.size(); i++) |
329 { | 331 { |
330 if (featureType == FEATURE_TYPE_UNKNOWN) { | 332 if (featureType == FEATURE_TYPE_UNKNOWN) { |