|
Algorithm 2 Segmentation |
|
Input: Range image , segmentation threshold , Label=1 |
|
Output: L |
-
1:
functionLabelrangeimage(,Label,L,)
-
2:
L=zeros()
-
3:
for
do
-
4:
for
do
-
5:
if
then
-
6:
queue.push(r,c)
-
7:
while queue is not empty do
-
8:
(r,c)=queue.top()
-
9:
L(r,c)=Label
-
10:
for
do
-
11:
-
12:
-
13:
if
then
-
14:
queue.push()
-
15:
end if
-
16:
end for
-
17:
queue.pop()
-
18:
end while
-
19:
Label=Label + 1
-
20:
end if
-
21:
end for
-
22:
end for
-
23:
end function
|