matthiasm@0: function vpath = flstDecode(d) matthiasm@0: matthiasm@0: nFrame = min([d.memory, d.updateCount]); matthiasm@0: psi = d.psi(:,(d.memory-nFrame+1):d.memory); matthiasm@0: vpath = zeros(1, nFrame); matthiasm@0: matthiasm@0: % initialise backward step matthiasm@0: [~, vpath(end)] = max(d.oldDelta); matthiasm@0: matthiasm@0: % rest of backward step matthiasm@0: for iFrame = (nFrame-1):-1:1 matthiasm@0: vpath(iFrame) = psi(vpath(iFrame+1), iFrame+1); matthiasm@0: end