To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Revision:

root / matlab / flstDecode.m @ 0:1df4a6fb0d22

History | View | Annotate | Download (316 Bytes)

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