Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/transform/FeatureExtractionModelTransformer.cpp Tue Oct 28 18:06:06 2008 +0000 +++ b/transform/FeatureExtractionModelTransformer.cpp Wed Oct 29 12:37:32 2008 +0000 @@ -686,7 +686,7 @@ RegionModel *model = getConformingOutput<RegionModel>(); if (!model) return; - if (feature.hasDuration) { + if (feature.hasDuration && !feature.values.empty()) { for (int i = 0; i < feature.values.size(); ++i) {