| Algorithm 4 Removing redundant photos |
| 1: Input: Local K-CoverPicTree |
| 2: for s = 1:S do |
| 3: Find all photos that cover sub-region s (Photos(s)) |
| 4: for k = 1:K do |
| 5: for b = 1:B do |
| 6: Find photos that cover (s, b) from the same sector view (Photos(s, b, k)) |
| 7: end for |
| 8: Find photos that cover all BoIs of sub-region s from sector k (Photos(s, 1:B, k) = Photos(s, k)) |
| 9: end for |
| 10: if (size of Photos(s, k) > 0) do |
| 11: Redundant Photos = Photos(s, b, k) − Photos(s, k) |
| 12: Remove each redundant photo from the corresponding parent Node(s, b, k) in Local K-CoverPicTree |
| 13: end if |
| 14: end for |