|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inline |
Dynamic time warping cost between two sequences.
| T | Element type |
| a | Left sequence |
| b | Right sequence |
| distance | Pointwise cost between one element of each |
| band | Sakoe-Chiba radius: the furthest an alignment may stray from the diagonal, in elements. Zero means unconstrained |
Resampling by arc length removes speed variation from a path by discarding time entirely, which is right when only shape matters and wrong when the quantity being compared is not positional. This instead keeps both sequences and finds the cheapest correspondence between them, allowing one to stretch against the other, so two recordings of the same thing performed at different tempos align rather than disagree at every step.
The band is the difference between a bounded cost and a quadratic one, and it also encodes an assumption: a nonzero band asserts that the two sequences are roughly in step and only locally out of it. A band narrower than the genuine offset between two sequences reports infinity rather than a poor alignment, which is the honest answer given the constraint it was handed.
Definition at line 361 of file PathShape.hpp.
References a, b, distance(), hi, and lo.
Here is the call graph for this function: