Mercurial > hg > match-vamp
diff src/Finder.h @ 81:c603d77b00ac refactors
Toward cost checks
author | Chris Cannam |
---|---|
date | Thu, 27 Nov 2014 08:13:29 +0000 |
parents | c3c50d5e05b7 |
children | 3616d541d69e |
line wrap: on
line diff
--- a/src/Finder.h Thu Nov 20 16:44:06 2014 +0000 +++ b/src/Finder.h Thu Nov 27 08:13:29 2014 +0000 @@ -67,6 +67,20 @@ int retrievePath(bool smooth, std::vector<int> &pathx, std::vector<int> &pathy); protected: + struct ErrorPosition { + enum Type { NoError = 0, CostError }; + ErrorPosition() : type(NoError) { } + Type type; + int r; + int c; + double prevCost; + float distance; + Matcher::Advance advance; + double costWas; + double costShouldBe; + }; + ErrorPosition checkPathCostMatrix(); + Matcher *m_m; int m_duration1; int m_duration2;