|
Algorithm 1 Camera view selection. |
|
Input: The complete trajectory ; the list of loop closure key frames . |
Output: The reduced trajectory .
-
1:
for each input frame
do
-
2:
Compute , , , ;
-
3:
if ( or or ) and
then
-
4:
Prune away ;
-
5:
else if
then
-
6:
for each loop closure key frame
do
-
7:
Compute the con-visibility ratio ;
-
8:
if
then
-
9:
Prune away ;
-
10:
else
-
11:
Save ;
-
12:
return The reduced trajectory ;
|