Mercurial > hg > flst
comparison matlab/flstDecode.m @ 0:1df4a6fb0d22
added flst files moved over from "smoothie"
author | matthiasm |
---|---|
date | Fri, 31 Oct 2014 10:52:27 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1df4a6fb0d22 |
---|---|
1 function vpath = flstDecode(d) | |
2 | |
3 nFrame = min([d.memory, d.updateCount]); | |
4 psi = d.psi(:,(d.memory-nFrame+1):d.memory); | |
5 vpath = zeros(1, nFrame); | |
6 | |
7 % initialise backward step | |
8 [~, vpath(end)] = max(d.oldDelta); | |
9 | |
10 % rest of backward step | |
11 for iFrame = (nFrame-1):-1:1 | |
12 vpath(iFrame) = psi(vpath(iFrame+1), iFrame+1); | |
13 end |