diff transform/FeatureExtractionModelTransformer.cpp @ 777:eea8049df526

Fix incorrect retrieval of point in model by row number if point frame values fell between model resolution boundaries
author Chris Cannam
date Wed, 27 Mar 2013 14:51:49 +0000
parents 7f76499ef4f2
children d373ced0e6e9
line wrap: on
line diff
--- a/transform/FeatureExtractionModelTransformer.cpp	Mon Mar 25 12:15:36 2013 +0000
+++ b/transform/FeatureExtractionModelTransformer.cpp	Wed Mar 27 14:51:49 2013 +0000
@@ -673,6 +673,9 @@
 	} else {
 	    frame = m_output->getEndFrame();
 	}
+
+//        std::cerr << "Feature hasTimestamp = " << feature.hasTimestamp << ", timestamp = " << feature.timestamp << ", frame works out to " << frame << std::endl;
+
     }
 	
     // Rather than repeat the complicated tests from the constructor
@@ -704,6 +707,8 @@
                 label = QString("[%1] %2").arg(i+1).arg(label);
             }
 
+            std::cerr << "Adding point at " << frame << " with value " << value << " and label " << label << std::endl;
+
             model->addPoint(SparseTimeValueModel::Point(frame, value, label));
         }