Mercurial > hg > match-vamp
comparison Path.cpp @ 14:cdead4a52755
Make feeder/matcher able to return feature vectors
author | Chris Cannam |
---|---|
date | Fri, 10 Oct 2014 12:04:54 +0100 |
parents | 640f92242cc1 |
children |
comparison
equal
deleted
inserted
replaced
13:66082cc488c3 | 14:cdead4a52755 |
---|---|
19 int | 19 int |
20 Path::smooth(std::vector<int> &x, std::vector<int> &y, int length) | 20 Path::smooth(std::vector<int> &x, std::vector<int> &y, int length) |
21 { | 21 { |
22 if (length == 0) | 22 if (length == 0) |
23 return 0; | 23 return 0; |
24 while (val.size() < length) { | 24 while ((int)val.size() < length) { |
25 val.push_back(0); | 25 val.push_back(0); |
26 len.push_back(0); | 26 len.push_back(0); |
27 } | 27 } |
28 int p = 0; | 28 int p = 0; |
29 val[0] = len[0] = 0; | 29 val[0] = len[0] = 0; |