comparison transform/FeatureExtractionModelTransformer.cpp @ 474:6d45f77e63ee

* Ensure that region features are added even if they lack any values!
author Chris Cannam
date Wed, 29 Oct 2008 12:37:32 +0000
parents ba7aaacb7211
children a70dcfed59c1
comparison
equal deleted inserted replaced
473:47b41ec34407 474:6d45f77e63ee
684 feature.label.c_str())); 684 feature.label.c_str()));
685 } else { 685 } else {
686 RegionModel *model = getConformingOutput<RegionModel>(); 686 RegionModel *model = getConformingOutput<RegionModel>();
687 if (!model) return; 687 if (!model) return;
688 688
689 if (feature.hasDuration) { 689 if (feature.hasDuration && !feature.values.empty()) {
690 690
691 for (int i = 0; i < feature.values.size(); ++i) { 691 for (int i = 0; i < feature.values.size(); ++i) {
692 692
693 float value = feature.values[i]; 693 float value = feature.values[i];
694 694