Mercurial > hg > match-vamp
diff src/FullDTW.cpp @ 246:aac9ad4064ea subsequence tip
Fix incorrect handling of silent tail in the non-subsequence MATCH phase; some debug output changes
author | Chris Cannam |
---|---|
date | Fri, 24 Jul 2020 14:29:55 +0100 |
parents | e4715a35f7b0 |
children |
line wrap: on
line diff
--- a/src/FullDTW.cpp Fri Jul 17 18:15:27 2020 +0100 +++ b/src/FullDTW.cpp Fri Jul 24 14:29:55 2020 +0100 @@ -176,7 +176,7 @@ } #ifdef DEBUG_DTW - std::cerr << "Alignment:" << std::endl; + std::cerr << "Costed path:" << std::endl; pathcost_t prevcost = 0; int indent = 0; size_t prevj = 0; @@ -201,6 +201,11 @@ if (prevcost == 0) prevcost = 1; } std::cerr << "\n"; + + std::cerr << "Alignment:" << std::endl; + for (size_t i = 0; i < alignment.size(); ++i) { + std::cerr << i << " -> " << alignment[i] << "\n"; + } #endif return alignment;