comparison transform/FeatureExtractionModelTransformer.cpp @ 1649:1cc9a0d4b1b6 single-point

Update RegionModel following NoteModel, er, model. They have quite a bit in common that we should now pull out some of
author Chris Cannam
date Fri, 15 Mar 2019 14:23:50 +0000
parents 29a20719796e
children 7a56bb85030f
comparison
equal deleted inserted replaced
1648:86bbccb79c9b 1649:1cc9a0d4b1b6
1055 QString label = feature.label.c_str(); 1055 QString label = feature.label.c_str();
1056 if (feature.values.size() > 1) { 1056 if (feature.values.size() > 1) {
1057 label = QString("[%1] %2").arg(i+1).arg(label); 1057 label = QString("[%1] %2").arg(i+1).arg(label);
1058 } 1058 }
1059 1059
1060 model->addPoint(RegionModel::Point(frame, 1060 model->add(Event(frame,
1061 value, 1061 value,
1062 duration, 1062 duration,
1063 label)); 1063 label));
1064 } 1064 }
1065 } else { 1065 } else {
1066 1066
1067 model->addPoint(RegionModel::Point(frame, 1067 model->add(Event(frame,
1068 value, 1068 value,
1069 duration, 1069 duration,
1070 feature.label.c_str())); 1070 feature.label.c_str()));
1071 } 1071 }
1072 } 1072 }
1073 1073
1074 } else if (isOutput<EditableDenseThreeDimensionalModel>(n)) { 1074 } else if (isOutput<EditableDenseThreeDimensionalModel>(n)) {
1075 1075