comparison 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
comparison
equal deleted inserted replaced
44:c1112adfd270 49:c2e152d8a9d4
30 } 30 }
31 31
32 void 32 void
33 MatchFeatureFeeder::feed(vector<double> f1, vector<double> f2) 33 MatchFeatureFeeder::feed(vector<double> f1, vector<double> f2)
34 { 34 {
35 // We maintain two FIFO queues of feature vectors, one per input
36 // stream. When the match-feeder function is entered, it knows
37 // that it has at least one feature in each queue. It loops,
38 // processing up to one feature per matcher, until a queue is
39 // empty. Then it returns, to be called again with more data.
40
35 q1.push(f1); 41 q1.push(f1);
36 q2.push(f2); 42 q2.push(f2);
37 43
38 while (!q1.empty() && !q2.empty()) { 44 while (!q1.empty() && !q2.empty()) {
39 feedBlock(); 45 feedBlock();