Mercurial > hg > flst
annotate matlab/flstDecode.m @ 1:4283604499f8 tip
added mini probability to delta (not sure if this is a good idea, but I did it)
author | matthiasm |
---|---|
date | Mon, 10 Nov 2014 19:38:49 +0000 |
parents | 1df4a6fb0d22 |
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 |