Mercurial > hg > svcore
changeset 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 | 47b41ec34407 |
children | a70dcfed59c1 |
files | transform/FeatureExtractionModelTransformer.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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) {