Mercurial > hg > match-vamp
diff Finder.h @ 30:7784b0a0dd4d
Put the retrievePath logic in Finder (was in the plugin itself)
author | Chris Cannam |
---|---|
date | Fri, 31 Oct 2014 15:42:40 +0000 |
parents | 640f92242cc1 |
children | 1ff9ae1dcb50 |
line wrap: on
line diff
--- a/Finder.h Fri Oct 31 13:03:16 2014 +0000 +++ b/Finder.h Fri Oct 31 15:42:40 2014 +0000 @@ -86,6 +86,16 @@ */ void recalculatePathCostMatrix(int r1, int c1, int r2, int c2); + /** + * Track back after all of the matchers have been fed in order to + * obtain the lowest cost path available. Path x and y coordinate + * pairs are returned in corresponding elements of pathx and + * pathy. Return value is the length of the returned path: only + * this many elements from pathx and pathy are valid (any + * subsequent ones may be spurious). + */ + int retrievePath(std::vector<int> &pathx, std::vector<int> &pathy); + }; // class Finder #endif