comparison src/Finder.cpp @ 55:a68204b9a529

Ensure matrix is recalculated for reverse path
author Chris Cannam
date Fri, 14 Nov 2014 10:24:13 +0000
parents 16870e8770ae
children 506f0d9880db 47f7649ab9d5
comparison
equal deleted inserted replaced
39:2f8a802b62f9 55:a68204b9a529
250 Finder::retrievePath(bool smooth, vector<int> &pathx, vector<int> &pathy) 250 Finder::retrievePath(bool smooth, vector<int> &pathx, vector<int> &pathy)
251 { 251 {
252 int x = pm2->getFrameCount() - 1; 252 int x = pm2->getFrameCount() - 1;
253 int y = pm1->getFrameCount() - 1; 253 int y = pm1->getFrameCount() - 1;
254 254
255 recalculatePathCostMatrix(0, 0, y, x);
256
255 pathx.clear(); 257 pathx.clear();
256 pathy.clear(); 258 pathy.clear();
257 259
258 while (find(y, x) && ((x > 0) || (y > 0))) { 260 while (find(y, x) && ((x > 0) || (y > 0))) {
259 261