Skip to main content
. 2013 Sep 4;13(9):11603–11635. doi: 10.3390/s130911603

Algorithm 2 Outline of adaptive projection window method.

Input: A 3.0 by 1.5 m image region I ∈ ℝ2N×N and TP ≪ 1 probability threshold, where N is the width of I in pixels.
Initialization: If the filter sliding window, S, of 128 × 64 pixels corresponds to less than 2.0 by 1.0 m, then, accordingly, scale down I.
Procedure:
while S corresponding dimension ≤ 3.0 by 1.5m do
  n = 0; ▹ number of total pyramid windows
  for i = 1; until S traverses all I vertically; ii + 8 do
   for j = 1; until S traverses all I horizontally; jj + 8 do
    Hn ← HoG descriptor of S(Iij)
    Cn, Pn ← class and probability output of linear SVM classifier for input Hn
    nn + 1
   end for
  end for
  Scale down I by a constant scaling factor, F.
end while
 Find k for which P(X>k)=(nk)pk(1p)nk1TP
if sum(Cn == +1) > k then
  Cout ← +1
  Poutmax(Pn)
else
  Cout ← −1
  Poutmin(Pn)
end if
Output: The output class, Cout, and probability, Pout