| Algorithm 5 Calculating the utility of the photos |
| 1: Input: Local K-CoverPicTree |
| 2: Total utility = 0 |
| 3: Call Algorithm 4 |
| 4: for s = 1:S do |
| 5: for k = 1:K do |
| 6: if ((size of Photos(s, k) > 0)) then |
| 7: Total utility = Total utility + Area of sub-region × θ |
| 8: end if |
| 9: end for |
| 10: end for |