|
Algorithm 1: Process of leaf simplification. |
| 1 |
Initialize the number of cameras |
| 2 |
|
| 3 |
Compute the initial VMI for the foliage F |
| 4 |
Compute where
|
| 5 |
Initialize the set of leaves to evaluate |
| 6 |
|
| 7 |
Repeat the process until the number of leaves is the established number |
| 8 |
while do |
| 9 |
// Initialize the cost |
| 10 |
for () |
| 11 |
remove l to obtain
|
| 12 |
Compute where
|
| 13 |
|
| 14 |
if then |
| 15 |
= l
|
| 16 |
|
| 17 |
end if |
| 18 |
Undo removal |
| 19 |
end for |
| 20 |
Remove
|
| 21 |
|
| 22 |
Obtain the of
|
| 23 |
|
| 24 |
Scale the size of according to Equation (5) |
| 25 |
|
| 26 |
end while |