Skip to main content
. 2018 Oct 28;18(11):3652. doi: 10.3390/s18113652
Algorithm 1 Camera view selection.
Input: The complete trajectory Tn=Ti,i[1,n]; the list of loop closure key frames L=j,j[1,l].
Output: The reduced trajectory Tr=Tk,k[1,r].
  • 1:

    for each input frame i[1,n] do

  • 2:

        Compute αi, βi, γi, vi;

  • 3:

        if (|αi|Thα or |βi|Thβ or |γi|Thγ) and ||vi||Thv then

  • 4:

            Prune away Ti;

  • 5:

        else if ij then

  • 6:

            for each loop closure key frame j[1,l] do

  • 7:

                Compute the con-visibility ratio ρi,j;

  • 8:

                if ρi,jThρ then

  • 9:

                    Prune away Ti;

  • 10:

        else

  • 11:

            Save Ti;

  • 12:

    return The reduced trajectory Tk=Ti;