Algorithm 1 Depth recovery by asynchronous cellular automata. |
Input: color image: ; depth image: ; |
Output: enhanced depth image: ; |
Initialize: condition flag: ; |
1: |
for
do
|
2: |
for
do
|
3: |
; |
4: |
end for
|
5: |
end for |
6: |
for
do
|
7: |
if
then
|
8: |
; |
9: |
; |
10: |
else
|
11: |
; |
12: |
; |
13: |
end if
|
14: |
end for |
15: |
while
do
|
16: |
; |
17: |
for
do
|
18: |
if
then
|
19: |
for
do
|
20: |
if
then
|
21: |
; |
22: |
; |
23: |
; |
24: |
end if
|
25: |
end for
|
26: |
end if
|
27: |
end for
|
28: |
end while |