annotate 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
rev   line source
matthiasm@0 1 function vpath = flstDecode(d)
matthiasm@0 2
matthiasm@0 3 nFrame = min([d.memory, d.updateCount]);
matthiasm@0 4 psi = d.psi(:,(d.memory-nFrame+1):d.memory);
matthiasm@0 5 vpath = zeros(1, nFrame);
matthiasm@0 6
matthiasm@0 7 % initialise backward step
matthiasm@0 8 [~, vpath(end)] = max(d.oldDelta);
matthiasm@0 9
matthiasm@0 10 % rest of backward step
matthiasm@0 11 for iFrame = (nFrame-1):-1:1
matthiasm@0 12 vpath(iFrame) = psi(vpath(iFrame+1), iFrame+1);
matthiasm@0 13 end