|
Algorithm 1 Graph construction: Here, and are threshold values to split a node into four children. |
-
1:
Input: image , init tree depth
-
2:
-
3:
Output: decomposed image with quadtree structure
-
4:
-
5:
functionQuadtree()
-
6:
-
7:
if () then
-
8:
-
9:
return
-
10:
-
11:
else
-
12:
-
13:
standard deviation of
-
14:
-
15:
divider of
-
16:
-
17:
standard deviation of
-
18:
-
19:
divider of
-
20:
-
21:
if () then
-
22:
-
23:
= split I as four sub images
-
24:
-
25:
return
QuadTree()
-
26:
-
27:
end if
-
28:
-
29:
end if
-
30:
-
31:
end function
|