diff src/MatchFeatureFeeder.cpp @ 49:c2e152d8a9d4 refactors_no_float

Comment
author Chris Cannam
date Thu, 13 Nov 2014 18:50:25 +0000
parents 6a5d165e5ea4
children faa523be20f9
line wrap: on
line diff
--- a/src/MatchFeatureFeeder.cpp	Thu Nov 13 13:59:41 2014 +0000
+++ b/src/MatchFeatureFeeder.cpp	Thu Nov 13 18:50:25 2014 +0000
@@ -32,6 +32,12 @@
 void
 MatchFeatureFeeder::feed(vector<double> f1, vector<double> f2)
 {
+    // We maintain two FIFO queues of feature vectors, one per input
+    // stream.  When the match-feeder function is entered, it knows
+    // that it has at least one feature in each queue.  It loops,
+    // processing up to one feature per matcher, until a queue is
+    // empty.  Then it returns, to be called again with more data.
+
     q1.push(f1);
     q2.push(f2);