comparison 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
comparison
equal deleted inserted replaced
57:d241e7701c0c 58:d72fcd34d9a7
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) {