Mercurial > hg > match-vamp
changeset 47:b183534a2cf5 refactors
Comment
author | Chris Cannam |
---|---|
date | Thu, 13 Nov 2014 18:50:25 +0000 |
parents | b0ebc3e2c016 |
children | c7aa28f0d2ac |
files | src/MatchFeatureFeeder.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/MatchFeatureFeeder.cpp Thu Nov 13 15:09:04 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);