Skip to main content
. 2016 Jul 5;16(7):1040. doi: 10.3390/s16071040
Algorithm 3: Anti-blurred Key-frame Selection
Input: Image sequence g1,g2,,gn, Ncurrent, D
1  for each i>Ncurrent&&Dmin|Tgi-TNcurrent|Dmax do
2  Calculate blurred degree bi and its threshold b^i
3  if bib^i then
4    Push(gi,C1)
5  else
6    Push(gi,C2)
7  end
8  end
9  if C1 != NULL then
10  return Pop(C1)
11 else
12  Sort(C2)
13  return Pop(C2)
14 end