Skip to main content
. 2016 Jul 5;16(7):1040. doi: 10.3390/s16071040
Algorithm 2: Adaptive Blurred Image Classification
Input: Image sequence g1,g2,,gn
1  Initialization: scalar factor γ, window size S, bias parameters β, K0=0
2  for i=1,,n do
3  if i>S then
4    Ki=γKi-1+(1-γ)(1Ss=1Sbi-s+β)
5  else
6    if i==S then
7      Ki=Ki/S
8    else
9      Ki=Ki-1+bi
10    end
11  end
12  if bi>Ki then
13    gi is blurred
14  else
15    gi is clear
16  end
17 end