Skip to main content
. 2019 May 27;19(10):2416. doi: 10.3390/s19102416
Algorithm 1 Rest Removal Algorithm
  • 1:

    procedure Rest Removal

  • 2:

        AFG-list ← List of angles αAG.

  • 3:

        DispAFG ← Displacement of angle list αAG.

  • 4:

        GDispAFG ← Gradient of the DispAFG.

  • 5:

        FOGIndxsFOGCandidates start and stop points.

  • 6:

        for ii,jj in FOGIndxs do

  • 7:

            curFOGPksVal ← FindPeaks(GDispAFG(ii to jj)).

  • 8:

            curFOGPksNum ← Length of the curFOGPksVal > PksValThr.

  • 9:

            if curFOGPksNum < PksNumThr then

  • 10:

               FOGCandidates(ii to jj) ← 0

  • 11:

            end if

  • 12:

        end for

  • 13:

    end procedure