A COMPARISON AND EVALUATION OF MOTION INDEXING ...
A COMPARISON AND EVALUATION OF MOTION INDEXING ...
A COMPARISON AND EVALUATION OF MOTION INDEXING ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
etween the two sequences using a dynamic programming algorithm and the following<br />
optimization criterion:<br />
cij = dij + min (ci−1,j−1, ci,j−1, ci−1,j) ,<br />
where cij is the minimal cost between the subsequences (a1, a2, · · · , ai) and (b1, b2, · · · , bj).<br />
A warping path is a path through the matching cost matrix from the element c11 to<br />
element cnm consisting of those cij elements that have contributed to the distance in<br />
cnm.<br />
The global warp cost, GC(a, b), of the two sequences is defined as shown below:<br />
GC(a, b) = 1/p<br />
p<br />
wi,<br />
where wi are the elements belonging to the warping path and p is the number of<br />
elements in the path. The warping path is typically subject to several constraints:<br />
1. Boundary conditions: The path starts in the left bottom corner and ends in the<br />
right top corner. This means that the warping path starts and finishes inthe<br />
i=1<br />
diagonally opposite corner cells of the cost matrix.<br />
2. Continuity: The path advances gradually, step by step. The indices i and j<br />
increase by a maximum of 1 unit at each step. This restricts the possible steps<br />
in the warping path to adjacent cells including diagonally adjacent cells. Given<br />
wk = (i, j), then wk−1 = (i ′ , j ′ ), where (i − i ′ ) ≤ 1 and (j − j ′ ) ≤ 1<br />
3. Monotonicity: Both indices i and j used for traversing through sequences never<br />
decrease. This forces the points in the path W to be monotonically spaced in<br />
time. Given wk = (i, j), then wk−1 = (i ′ , j ′ ), where i − i ′ 0 and j − j ′ 0.<br />
Dynamic Time Warping (DTW) finds the best global match or alignment between<br />
the two sequences by time warping them optimally. The Figure 4.1 shows the result<br />
of DTW on two sequences of a pick box from floor action.<br />
40