Skip to main content
. 2012 Nov 12;12(11):15638–15670. doi: 10.3390/s121115638

Algorithm 1 Generate points of interest and possible patches

Require: Points of interest
(a) Obtain user input bounding box during the first frame
(b) Convert previous and current frames to grey scale for each cycle
(c) Perform Smoothing to both frames with Gaussian convolution
(d) Find Laplacian for each frame
(e) Obtain the matrix [FIxxi,x,yFIxyi,x,yFIyxt,x,yFIyyt,x,y] for each pixel
(f) If min eigenvalue> Inline graphic
  accept the point as possible POI
Else
  reject the point
End If
Require: tentative patches
(a) Each channel of RGB is treated separately
(b) Built vector descriptors, Vit,x,y for both frames
(c) For i, …, total POI Do
L1=i|Vit,x,yVit1,x,y|
End For
(d) Obtain L2 to decide either to accept the POI or not
If L1 < Inline graphic1
L2t,x,y=1
Else
L2t,x,y=0
End If
(e) Construct a patch at each point where L2 = 1
 The original size of each patch is similar with the final size of the previous frame
(d) Smooth out overlapping patches by combining redundant patches
IF Oa > ( Inline graphic2 × βw × βh)
  combine the patches by finding the mean of the patches
Else
  remain as it is
End If