|
Algorithm 1 Ground points extraction |
|
Input: Range image R, ground angle threshold , Label=1, windowsize |
|
Output: L |
-
1:
functionGroundpointextraction(R,Label,L,,windowsize )
-
2:
A=CreateAngleImage(R)
-
3:
S=ApplySavitskyGolaySmoothing(A,windowsize)
-
4:
L=zeros()
-
5:
for r=; r ≥ 1;
do
-
6:
for
do
-
7:
if
then
-
8:
queue.push(r,c)
-
9:
while queue is not empty do
-
10:
r,c=queue.top()
-
11:
L(r,c)=Label
-
12:
for
do
-
13:
g=
-
14:
if
then
-
15:
queue.push()
-
16:
end if
-
17:
end for
-
18:
queue.pop()
-
19:
end while
-
20:
end if
-
21:
end for
-
22:
end for
-
23:
end function
|