|
Algorithm1. Local Map Extraction. |
-
Input:
j is the index of the current frame. is the pose of the current frame. is the pose database that stores the poses of each frame and their surfels. is the maximum mapping distance.
-
Output:
is a vector of the local frame indexes. is a vector of the local surfels.
-
1:
CLEAR()
-
2:
CLEAR()
-
3:
for each do
-
4:
-
5:
← transform(, )
-
6:
← project()
-
7:
if isValidRange() && ≤ then
-
8:
-
9:
end if
-
10:
← transform(, )
-
11:
← project()
-
12:
if isValidRange() && ≤ then
-
13:
-
14:
end if
-
15:
if distance(, ) ≤ && angle(, ) ≤ then
-
16:
-
17:
end if
-
18:
if then
-
19:
for do
-
20:
.PUSH()
-
21:
end for
-
22:
end if
-
23:
end for
-
24:
for each do
-
25:
INSERT([i].surfels)
-
26:
end for
|