| Algorithm 1: Voting Scheme |
| Input: all candidate sorted images { } |
| 1: Vote for all sorted images { }; |
| 2: If the top sorted three candidate images { } are associated with the same id; |
| 3: Then, the best matching image is ; |
| 4: Otherwise, the best matching can be acquired using the surf matching Algorithm; |
| Output: the best matching image |