scieee AI-readable full text Open interactive document viewer

Multi-View Vocabulary Trees for Mobile 3D Visual Search

Ebrí Mars, David

Abstract

Mobile Visual Search (MVS) is a research field which focuses on the recognition of real-world objects by using the mobile device such as smart phone or robots. Current mobile visual search solutions achieve search results based on the appearance and it is suitable for planar structured objects such as CD cover images, magazines and artworks. The novel solution Mobile 3D Visual Search captures not only the visual appearance of the query object, but uses also the underlying 3D geometry. Vocabulary Tree (VT) methods have been widely used to efficiently find the match for a query in the database with a large volume of data. In this thesis, we study the vocabulary tree in the scenario of multi-view imagery for mobile visual search. The experimental results show that our multi-view vocabulary trees improve the matching and ranking performance of mobile visual search.

Full text

Multi-View Vocabulary Trees for Mobile 3D Visual Search DAVID EBRÍ MARS Master’s Degree Project Stockholm, Sweden October 2014 XR-EE-KT 2014:013 Multi-View Vocabulary Trees for Mobile 3D Visual Search David Ebrí Mars Abstract Mobile Visual Search (MVS) is a research field which focuses on the recognition of real-world objects by using mobile devices such as smart phones or robots. Current mobile visual search solutions achieve search results based on the appearance of the objects in images captured by mobile devices. It is suitable for planar structured objects such as CD cover images, magazines and art works. However, these solutions fail if different real objects appear similar in the captured images. To solve this problem, the novel solution captures not only the visual appearance of the query object, but uses also the underlying 3D geometry. Vocabulary Tree (VT) methods have been widely used to efficiently find the match for a query in the database with a large volume of data. In this thesis, we study the vocabulary tree in the scenario of multi-view imagery for mobile visual search. We use hierarchically structured multi-view features to construct a multi-view vocabulary trees which represent the 3D geometric information of the objects. Relevant aspects of vocabulary trees such as the shaping of trees, tf-idf weighting and scoring functions have been studied and incorporated in the multi-view scenario. The experimental results show that our multi-view vocabulary trees improve the matching and ranking performance of mobile visual search. i Acknowledgements This thesis has been developed at the Visual Computing and Communications group at the School of Electrical Engineering at KTH. It would never have been possible without the priceless help and dedication of my always comprehensive supervisor, Haopeng Li, who has guided me through the difficulties that I encountered during the thesis and offered me constructive advice. Furthermore I would like to thank my coordinator Markus Flierl for introducing me to the topic and giving me the chance to participate in this exciting project. Also, I want to thank to the people at the department for their fellowship, especially to my project mate Hanwei Wu. Last but not least, I would like to thank my family and friends, who have supported me throughout the entire process, particularly to my parents, even being 3000 km away from Stockholm. My heartfelt thanks. ii Contents Abstract i Acknowledgements ii List of Figures vi 1 Introduction 1 1.1 What is Mobile Visual Search? . . . . . . . . . . . . . . . . . . . 1 1.2 Applications.............................. 2 1.3 Motivation .............................. 3 1.4 ProjectStatements.......................... 4 1.5 Outline ................................ 4 2 Literature Review 5 2.1 MobileVisualSearch......................... 5 2.1.1 Client-Server Model . . . . . . . . . . . . . . . . . . . . . 6 2.1.2 Image-based Feature Descriptors . . . . . . . . . . . . . . 7 2.1.3 Vocabulary Trees . . . . . . . . . . . . . . . . . . . . . . . 14 2.1.4 Geometric Verification . . . . . . . . . . . . . . . . . . . . 21 2.2 Mobile 3D Visual Search . . . . . . . . . . . . . . . . . . . . . . . 24 2.2.1 Hierarchically Structured Multi-View Features . . . . . . 24 2.2.2 Multi-View Geometric Verification: A 3D approach . . . . 26 iii 3 Multi-View Vocabulary Trees 27 3.1 Multi-View Visual Vocabulary . . . . . . . . . . . . . . . . . . . 27 3.1.1 Multi-View Features . . . . . . . . . . . . . . . . . . . . . 27 3.1.2 Codebook Universality . . . . . . . . . . . . . . . . . . . . 28 3.1.3 Memory-Constrained Multi-View Vocabulary Trees . . . . 28 3.2 Construction of Vocabulary Trees . . . . . . . . . . . . . . . . . . 29 3.2.1 Hierarchical k-means Algorithm . . . . . . . . . . . . . . . 30 3.2.2 TypesofNodes........................ 32 3.3 Matching and Multi-View Vocabulary Trees . . . . . . . . . . . . 35 3.3.1 Object-based TF-IDF . . . . . . . . . . . . . . . . . . . . 35 3.3.2 Fast 3D Geometric Verification . . . . . . . . . . . . . . . 36 4 Experimental Results 38 4.1 Database ............................... 38 4.2 Performance.............................. 39 4.2.1 AddingViews......................... 39 4.2.2 CodebookSize ........................ 40 4.2.3 Memory-Constrained Vocabulary Trees . . . . . . . . . . 41 4.2.4 3D Geometric Verification . . . . . . . . . . . . . . . . . . 42 4.3 Computational Complexity of Matching . . . . . . . . . . . . . . 42 5 Conclusions 43 5.1 SummaryofResults ......................... 43 5.2 FutureWork ............................. 44 Bibliography 47 iv List of Figures 2.1 Mobile visual search generic scheme. . . . . . . . . . . . . . . . . 5 2.2 Architecture of our MVS project . . . . . . . . . . . . . . . . . . 7 2.3 Local feature recognition . . . . . . . . . . . . . . . . . . . . . . . 9 2.4 SIFT descriptor extraction process . . . . . . . . . . . . . . . . . 10 2.5 Gaussian and DoG pyramids . . . . . . . . . . . . . . . . . . . . 11 2.6 Gradients Histogram . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.7 Computation of a SIFT descriptor . . . . . . . . . . . . . . . . . 12 2.8 Computation of a CHoG descriptor . . . . . . . . . . . . . . . . . 13 2.9 BagofWords............................. 14 2.10VisualVocabulary .......................... 15 2.11 Example of k-means ......................... 17 2.12 Creation of a Vocabulary Tree . . . . . . . . . . . . . . . . . . . . 19 2.13ExampleofRANSAC ........................ 22 2.14 Fast geometric re-ranking . . . . . . . . . . . . . . . . . . . . . . 23 2.15 Multi-View correspondences . . . . . . . . . . . . . . . . . . . . . 25 2.16 Pyramidal set of features . . . . . . . . . . . . . . . . . . . . . . 25 3.1 Example of Vocabulary Tree . . . . . . . . . . . . . . . . . . . . . 33 3.2 InvertedIndex ............................ 34 3.3 Misalignments between 3D objects . . . . . . . . . . . . . . . . . 36 v 4.1 Adding views experiment . . . . . . . . . . . . . . . . . . . . . . 40 4.2 Comparison between codebook sizes . . . . . . . . . . . . . . . . 41 4.3 Memory-constrained vocabulary tree . . . . . . . . . . . . . . . . 41 4.4 Comparison between GV methods . . . . . . . . . . . . . . . . . 42 vi Chapter 1 Introduction 1.1 What is Mobile Visual Search? In the past decades, technology has been developed at high speed. The current computational capacity at our disposal was just a dream some time ago. An important field of the technological revolution in recent years has been mobile devices. They have moved from being big and heavy "bricks" with poor black and white screens to being powerful computers with big HD screens, high-resolution cameras and fast wireless connections. Furthermore, mobile phones have spread all around the world. The International Telecommunication Union estimated in May 2014 that there are nearly 7 billion mobile subscriptions worldwide, which represents a 95.5 percent of the world population1. All these properties make smartphones ideal devices to perform image processing algorithms and bring new possibilities to developers to create new uses for mobile phones. Additionally, considering the large number of users, technology for mobile devices can be a very profitable business. A very interesting field that is emerging nowadays is object retrieval, which tries to identify objects from the real world in a similar way as humans do by applying techniques from computer vision and artificial intelligence. The new research area called mobile visual search (MVS) ([1],[2]) studies this field in the specific context of mobile devices. These systems try to recognise objects from images or video sequences taken by robots, smartphones, compact cameras, etc. The particularity of doing it from mobile devices adds some extra problems to the old ones. Some of these matters that need to be solved and optimized are client-server interaction, bad quality cameras, limited computational capacity and poor mobile connections. Thanks to advanced methods in signal processing and communication theory, MVS is facing these challenges with good results and promising perspectives. 1Link: www.itu.int/en/ITU-D/Statistics/Documents/facts/ICTFactsFigures2014-e.pdf 1 1.2 Applications The great potential of mobile visual search relies on the fact that it doesn’t need any additional element to perform the recognition than the objects themselves. In contrast to other systems like QR codes or barcodes, it recognises the objects directly from reality. The idea of identifying objects from the real world using a camera can be used in many different applications: •Shopping. This is one of the most popular applications for mobile visual search. The idea is to take a picture of a product and recognise it at the moment, showing interesting information about it like description, price, shops where you can buy it, opinions of people that has already bought it, etc. These products can be DVDs, books, posters, computer games, clothes... There are already some commercial apps offering this service. One example is Flow Powered by Amazon2, that can identify products from Amazon on-line shop and offer the possibility to buy them instantly. •Games. This industry is very interested in developing good object recognizing algorithms, because the possibilities of playing with the reality in a virtual world are huge. There have been many approaches trough the years, from cameras that can identify the player’s body (Eyetoy or Kinect), to smartphones that modify the world to create a battle scenario, like Real Strike3. •Geolocation. A complement to the GPS that uses the visual information of the mobile phone to locate the user with more accuracy. •Tourism. The concept is to visit a city and discover it by taking pictures of buildings and monuments, so our smartphone can give us information about them, explain their history and curious facts. •Robotics. Make robots to "understand" what they see. It can help to develop more sophisticated machines to be used innumerable fields: the military, the sanitary, humanitarian... As we can see, the applications are countless. There are already some real applications available in the market that implement these ideas such as Google Goggles4,Camfind5or Layar6. Although this technology is still in an early state, it is easy to find many different young companies and start-ups all around the world working on it, such as Acrossair7or Mobile Acuity8. There is no doubt that mobile visual search will have an important role in our future everyday lives. 2Flow: www.amazon.com/A9-Innovations-LLC-Powered-Amazon/dp/B008G318PE 3Real Strike: https://itunes.apple.com/se/app/id507884100?mt=8 4Google Goggles: www.google.com/mobile/goggles 5Camfind: camfindapp.com 6Layar: www.layar.com 7Acrossair: www.acrossair.com 8Mobile Acuity: www.mobileacuity.com 2 comes to object recognition the local descriptors outperform the global ones. It makes sense because the global descriptors consider the images as a whole, and in object recognition we don’t care about the image itself, but about the object contained in it. For example: Let’s think about one object that appears in two quite different pictures (taken from different viewpoints, rotated, with scale changes, occlusion...). In theory, by using a global descriptor we couldn’t establish any relation between them, but with a robust local descriptor we could. For this reason, local descriptors have gained popularity in object recognition applications and this is the approach used in the thesis. 2.1.2.2 Local detectors and descriptors Now that we know which kind of descriptor fits us better, we need to choose one to perform our experiments. To discover it, we should know how they work. The steps to subtract local features from an image are [17]: 1. Detect the interesting points with distinctive information. They are usually placed in corners and edges, points where there is an abrupt change. 2. Define a region around each keypoint in an invariant manner. The points itself are not the only thing that matters, we need to determine small areas around the point that are reliable against scale changes. 3. Extract and normalize the region content. This normalization prevents from rotation. This is typically done by finding the region’s dominant orientation and then rotating the content according to this angle, in order to bring it into a canonical orientation. 4. Encode the normalized region in a descriptor. Figure 2.3: Example of local features that have been independently extracted, scaled and canonically oriented from two different images. Then, they have been matched among them. Figure extracted from [17] One of the most popular local descriptors is SIFT. This is the one that we have used in the thesis. His popularity is due to his good performance and robustness against all the problems enumerated above, but there are many others. If the reader wishes to learn more about how local descriptors work and which different types exist, there is an exhaustive study carried out in [18]. 9 2.1.2.3 SIFT: Scale Invariant Feature Transform The Scale Invariant Feature Transform (SIFT) was published by David Lowe in 1999 in [6]. It is patented and its owner is the University of British Columbia. Over the years, it has demonstrated its effectiveness and robustness. There are many works explaining with high accuracy how SIFT works: [19], [20], [21]. We will look over the process briefly without going into the hard mathematics. As David Lowe described in [19] there are 4 main steps followed by the algorithm to extract the local features from an image, and each of them has some sub-steps at the same time. Figure 2.4 shows them: Figure 2.4: SIFT descriptor extraction process. We can see which stages are performed by the detector and the descriptor. Pictures extracted from [21] 1. Scale-space extrema detection. In this first step the potential interest points of the image that are invariant to scale and orientation are detected from scale-space extrema of differences-of-Gaussians (DoG) within a difference-of-Gaussians pyramid. The process begins with the construction of a Gaussian scale-space pyramid from the image. This is done by applying convolution to the image with Gaussian functions of different widths. Once we have it, we compute the difference-of-Gaussians between the levels in the scale-space pyramid to get another pyramid (Figure 2.5). Finally, the keypoints are obtained from the extrema values with respect to both the spatial coordinates in the image domain and the scale level in the pyramid. 10 Figure 2.5: Gaussian and DoG pyramids. Extracted from [19] 2. Keypoint localization and filtering. Since we got the keypoints at different scales, we need to approximate the values to the truly points in the original image. This post-process is done by interpolation with Taylor expansion of the scale-space function. After this calculations there are still a lot of points, all of which are not good enough. Here, a keypoint filtering that rejects some low-contrast and edges points is carried out. 3. Orientation assignment. This step aims to assign a consistent orientation to each keypoint, so its representation can be relative to it and therefore achieve invariance against image rotation. In order to discover it, we compute the magnitudes and orientations of gradients of the Gaussian smoothed images over a neighbourhood around the interest points. Subsequently, a local histogram is formed by quantizing the orientations into 36 bins covering the 360 degrees range. Figure 2.6 represents an example. The gradient magnitude and orientation are computed using pixel differences. Figure 2.6: In the left, keypoint with gradients of orientations and magnitudes. In the right, histogram with 36 bins of such gradients. Extracted from [20] To find the dominant orientation, peaks are detected in the histogram. To handle situations where there are more than one dominant orientation around the interest point, multiple peaks are accepted if the height of secondary peaks is above 80 percent of the highest peak height. In the case of multiple peaks, each peak is used for computing a new image descriptor for the corresponding orientation estimate. 11 4. Build keypoint descriptors. A rectangular grid is placed centered at the interest point, with its orientation determined by the main peak in the histogram and with the spacing proportional to the detection scale of the interest point. Typically, grids with 4x4 subregions are used. For each of this subregions a local histogram of local gradient directions is computed. These histograms have 8 bins, which represent 8 quantized directions. Thus, an image descriptor will have 4x4x8=128 dimensions for each interest point. Figure 2.7: Computation of a SIFT descriptor. This figure shows an image descriptor computed over a 2x2 whereas the SIFT descriptor is usually computed over a 4x4 grid. Image taken from [21] As we said, SIFT descriptors are a 128-dimensional vectors. They are quantized to 8 bits, which makes 1024 bits per descriptor. One image can have thousands of SIFT descriptors. They are transmitted along with their location in the image and with the meta-data of the mobile device. This means that it can happen that the data volume of the SIFT descriptors of one image is higher than the image itself with JPEG compression. This is the main disadvantage of SIFT: its high data size. To improve this characteristic, many approaches have been considered. One of them is the CHoG descriptors [8]. 2.1.2.4 CHoG: Compressed Histogram of Gradients CHoG aims to perform as good as SIFT descriptor (or even better) but with an important reduction of the bit rate. In [8], the authors claim that they have achieved a 20x reduction in the descriptor size, and also that they have outperformed other descriptors at lower or equivalent bit rates. There are many applications that require a low rate such as storage, latency and transmission. For this reason, CHoG is an interesting proposition. CHoG is based on HoG (Histogram of Gradients) family of descriptors, as well as SIFT. For this reason, there are many similarities between SIFT and CHoG, and we will describe the CHoG steps briefly. The procedure is the following: 12 1. Compute interest points at different scales. As it happened with SIFT, these keypoints are usually corners and edges. Areas around the points are computed to subtract patches of different sizes from the image. The patches at different scales are oriented along the dominant gradient and scaled to create canonical patches. 2. The canonical patches are divided into localized spatial bins, which gives robustness to interest-point localization error. These bins are soft logpolar spatial bins, made using DAISY configurations proposed in [22]. Such configuration has shown to be more effective than the square-grid configuration used in SIFT. 3. A histogram of gradients within each spatial bin is computed and compressed. Also the bins of the histogram are important, because CHoG treats the information in each spatial bin as a distribution. This makes possible the use of quantization and compression techniques originally though for distributions, that help to get a very compact description of the patch. The number of spatial and gradient bins define the final dimension of the descriptors. 4. The descriptor is compressed by quantizing the gradient histogram in each spatial bin individually. The creators of CHoG tried with two different algorithms for compressing probability distributions: Huffman Tree Coding and Gagie Tree Coding. After the compression, there are two more steps carried out: the Tree Fixed Length Coding and the Tree Entropy Coding. The authors found that the Huffman compression gives better results. Figure 2.8: Computation of a CHoG descriptor. Image taken from [1] The final results show a 20x reduction in the bit rate, low complexity and significant speed-up in the matching stage. Also, a very important point is that CHoG allows the distance computation between descriptors in the compressed representation, without the need of decoding. Despite all those improvements, in this Master Thesis we have used the SIFT descriptors due to their easier management and their popularity. Also because the previous work carried out in the project in which the thesis is framed was using SIFT descriptors. 13 2.1.3 Vocabulary Trees One critical problem in object recognition is how to deal in a reasonable time with huge databases composed by thousands of objects. Comparing all the query descriptors with all the database ones for every query image would be extremely slow. It is a naive and infeasible approach. The most famous approach to solve this problem is to cluster the descriptors into visual words. 2.1.3.1 Bag of Words The comparison between texts and images is widely used in computer vision [23]. In text retrieval there is an approach that represents a document as a “bag” of important keywords. By using a set of well-chosen words as query, it is easy to find the best matching text. This philosophy is called bag of words (BoWs) and it is adapted successfully to image retrieval [4]. This text-image analogy considers images as documents where the words are feature descriptors that are considered interesting and distinguishable from others and that appear in different images. These feature descriptors are called visual words. Figure 2.9: Bag of Words1 For using this idea it is necessary to create a visual vocabulary. Directly using the feature descriptors as visual words would not be efficient, and two descriptors almost identical would be considered different. Also, we should store millions of feature descriptors, which is infeasible. The solution is clustering the descriptors. Then, the very similar descriptors end in the same group and we can use the cluster center as a visual word. This process is a vector quantization and it makes possible to throw away the descriptors and use only the visual words. 1Image taken from: http://gilscvblog.wordpress.com/ 14 In Figure 2.10 we can appreciate a scheme of the process of creating the visual vocabulary. In (a), feature descriptors (white ellipses) are extracted from a large set of images to populate the feature subspace. We can appreciate in (b) that the features are clustered in order to quantize the space into a discrete number of visual words. In the third step, (c), a query image comes and the nearest visual word is identified for each of its features. Notice that we got rid of the descriptors. Finally, in (d) a bag-of-visual-words histogram can be used to summarize the entire image and match it with the most similar one from the database. Figure 2.10: Creation of the Visual Vocabulary. The image belongs to [17] 2.1.3.2 k-means algorithm Now the problem is how to cluster the feature descriptors in an efficient way. The original idea of using vector quantization for object recognition was suggested in [23]. The authors used the popular k-means algorithm to create vocabularies of 10k clusters. Due to k-means is widely used in feature descriptors clustering and also important to understand the vocabulary tree, we will explain it briefly. It is difficult to assign a single author to k-means. Many persons contributed separately to different versions of this well-known algorithm. An historical approach is carried out in [24], where it is explained which authors worked in the different versions of the algorithm, and which were the applications. 15 Basically, k-means is a vector quantization method that partitions a set of d-dimensional Nobservations (x1, x2, ..., xN)in kdifferent cells ci, i = 1...k such that the within-cluster sum of squares (WCSS) from the data points to the cluster centers are minimized. The algorithm computes: arg min c k X i=1 X x∈ci kx−µik2(2.1) where µi, i = 1...k are the cluster centers obtained from the mean of all the points remaining in such clusters. Typically, the distance used for it is Euclidean, but there are also many other distance functions that can be used: the Manhattan distance, the Hamming distance, the correlation between points... k-means is an iterative algorithm that keeps repeating some steps until it finds convergence. The stages are the following: 1. Initialize the starting centers of the clusters µi, i = 1...k. These kpoints need to be chosen at the beginning as cluster centers to start the iterative algorithm that will refine their positions in each iteration until finding the convergence. 2. Determine the closest cluster to each observation based in the distance function chosen. 3. Update the positions of the clusters to the mean of all data points belonging to that cluster. 4. Repeat steps 2-3 until convergence. Convergence is defined as the situation in which the assignments do not change from one iteration to the next one. To illustrate clearly these steps and understand better the algorithm, we have prepared a simple example in Figure 2.112. In the figure there are six stages. First, we have the observations that we want to cluster. In this case we have chosen k=4 to make it easy. In 2), we choose the 4 starting points that will be our cluster centers. The different methods of choosing the initial conditions are explained later on. Here we have used the Forgy method. We can see in 3) how the observations are assigned to their closest centers. After that, it is time to update the positions of the centers by calculating the mean of the points within each cluster. Then, in 5), k-means rearranges the observations to the new cluster centers. Finally, the last update of the cluster centers is carried out. We have finished here the algorithm because we found the convergence, new iterations will neither change the positions of the centers or the assignments of the observations. Pay attention to how the cluster center of the green dots has started in the the upper-left cluster group of observations and has moved to the upper-right. 2It has been done with the help of the tool available in this webpage, where there is also an explanation of k-means: http://www.onmyphd.com/?p=k-means.clustering 16 Figure 2.11: Example of a simple clustering in 6 steps by using k-means The convergence is not necessarily the global minimum of the sum of squares, because the problem is non-convex. For this reason, the most usual is that the algorithm converges to a local minimum. There is no guarantee that the global optimum is found using k-means. Since the algorithm stops in local minimum, the initial conditions (starting points of the clusters) are very important and define the results of the clusters, but there isn’t any method that guarantees to find the global optimum. There are many options to choose the starting points. The Forgy method consists on choosing randomly kobservations from the dataset. The Random Partition method assigns a cluster randomly to each observation and then computes the means as in the step 3. Gonzalez’s algorithm [25] initializes the cluster centers with points that have the maximum distance possible between them. A very common way is to run the algorithm many times with different starting conditions and get the one that gives better results. k-means is widely used in many different applications because it is relatively efficient and fast. Its complexity is O(kNdI), where kis the number of clusters, Nis the number of d-dimensional observations and Iis number of iterations. Its applications are very diverse, it is used in fields like machine learning, image processing, pattern recognition, data mining, geostatistics, astronomy or even in agriculture. 17 2.1.3.3 Hierarchical k-means: Vocabulary Trees This popular clustering algorithm described in the previous section was the first used to group feature descriptors into visual vocabularies, like for example in [23]. It results efficient when we apply it to small databases made of a few thousands of visual words, but it is difficult to extend its use to larger vocabularies. It becomes very slow to create the visual words when the number of clusters is high. There have been approaches to make k-means more efficient in clustering big volumes of data, like the one carried out in [26]. The authors use an alteration of the original k-means called Approximate k-means. Although they get an efficient clustering, there is still the problem of matching. Imagine that we can cluster in an effective way a huge database into millions of groups. In the matching process we would need to compare each of the query descriptors to all those millions of visual words to find the closest similarity, which is very slow. To make this process efficient, David Nistér and Henrik Stewénius proposed in [5] a scheme to structure the data called Vocabulary Tree (VT) that offers good performance and is scalable to big databases. A vocabulary tree is a product of a hierarchical k-means clustering that quantizes the feature descriptors by using the k-means algorithm recursively. It needs an offline training phase in which the tree is created from the data set. This training stage begins with the division of the data in kdifferent clusters by using k-means. The kcluster-centers will be the nodes of the first level of the tree. The same process is performed in each of the groups to get other kclusters within each of the first-level clusters, i.e., we apply the k-means algorithm recursively,dividing each cluster in kother clusters. This is done repeatedly until we reach a maximum depth D. At the end of the procedure we will get a vocabulary tree with branch factor kand Dlevels of depth3. Each node of the tree is a visual word and the nodes at bottom level are called leaf nodes. Our visual vocabulary will be composed by the kDvisual words in the leaf nodes. The values of kand Ddescribe the shape of the VT and how big will the vocabulary be. They are defined experimentally, depending on the data and the size of the database. There is a trade-off: if it is too small, the performance of classification will be very poor; if it is too large, it will perform well because the clusters will be small and the quantization error small, but it will be inefficient and difficult to store. Regarding the value of k, on the one hand, it is stated in [5] that while the computational complexity of increasing the size of the vocabulary in a non-hierarchical manner (conventional k-means) would be very high, the cost in the hierarchical approach is logarithmic in the number of leaf nodes. That brings us to choose a small kto be efficient. On the other hand, some experiments show that a higher branching factor offer better quality in the search, but not a dramatically improvement. A typical value often chosen is k=10, although other similar values can be also a good choice. 3Don’t confuse the VT with branch factor kand depth Dwith a k-d tree. In other works the notation used for depth is L, but we decided to use Din our code for practical reasons. 18 Figure 2.15: Multi-View correspondences Let fi↔fjbe the multi-view feature correspondence where firepresents a feature in the i-th image and fjrepresents the same feature in j-th image. Then, we can define a set of feature correspondences among limages as Cl i,j,...,k ={(fi, fj, ..., fk)|fi↔fj↔... ↔fk},(2.6) We can organize the set Cl i,j,...,k in a hierarchical manner in function of the number of views where the features appear. Usually, the distribution of a set forms a pyramid structure with a small number of robust features on the top, while the ones at the bottom are less reliable and more abundant, as we can observe in the Figure 2.15. Figure 2.16: Pyramidal set of features Every correspondence fi↔fj↔... ↔fkhas lfeature descriptors (one per view), which results very redundant. We follow the strategy of finding a common feature descriptor for all of them by taking the median as a robust estimate: [ dl(u) = Median dl h(u) : h=i, j, ..., k, u = 1, ..., 128 (2.7) where b dlis the new descriptor, dl his the feature descriptor of the h-th view and uis the descriptor dimension. This hierarchical pyramid makes possible a good feature selection from the top to the bottom. By truncating the pyramid, we can create a vocabulary tree that offers a higher performance than the conventional approach. 25 2.2.2 Multi-View Geometric Verification: A 3D approach As in conventional mobile visual search, in our 3D approach it is necessary a step that can rearrange the candidates list obtained from the vocabulary tree to discard outliers and improve the results. Now this stage is even more challenging than before due to the third dimension that we need to take on account. 2.2.2.1 Helmert transformation of stereo features To extract the 3D geometric information of the objects, the client needs to take more than one picture of the object intended to be recognised. As explained in [3], a combination of the features locations along with intrinsic camera parameters (such as the focal length or the image width in pixels), makes possible to extract the set of 3D world coordinates of the query object. Also a selfcalibration is done to align the features from all the different views and the RANSAC algorithm discards the possible outliers. After the VT matching is done, it is time to compare the 3D world coordinates of the query (Wc) and server (Ws) objects. The seven-parameter Helmert transformation is used for this purpose, which takes on account changes on scale and rotation: ~ wc=sΦ~ ws+~ t, (2.8) where ~ wc Wc,~ ws Ws,sis the scale parameter in R+,Φis the rotation matrix in R3and ~ tis the translation parameter in R3. Due to misalignments caused by erroneous calibrations, the RANSAC algorithm is used here to get rid of the outliers. By applying this method it is possible to compare the query and database spatial structures and find which object from the candidates list is more similar to the query. 2.2.2.2 Fast 3D Geometric Verification Although the technique presented above offers a good performance, the usage of the RANSAC algorithm to distinguish the outliers from the inliers makes it very slow. A fast geometric re-ranking method similar to the one described in Section 2.1.4.2 can be a better choice. With the 3D geometric information of the object, it is possible to efficiently extend this method to the 3D space which is more robust against a perspective transformation in the object. With this idea on mind and keeping the use of the Helmert transformation, we have developed a 3D GV step called Fast 3D Geometric Verification that can be executed much faster than other RANSAC-based methods [33] and offers a high performance. It is explained in Section 3.2.2. 26 Chapter 3 Multi-View Vocabulary Trees This chapter presents the multi-view vocabulary tree for mobile 3D visual search. To construct it, we use the hierarchically structured multi-view features extracted from multiple images per object. The new object based TF-IDF weighting scheme and scoring function have been incorporated in the multi-view scenario to improve the recognition performance. Also, we utilize the 3D geometric information associated with the multi-view vocabulary tree to implement a fast 3D geometric verification. We include details of the MatLab implementation. 3.1 Multi-View Visual Vocabulary A vital issue in the performance of the VT is its codebook, i.e., the visual vocabulary composed by the visual words of the leaf nodes1. In this section, three main aspects about it are considered. The first one is the database used to build it, the Multi-View Features. After that, we explore the options regarding the Codebooks Universality. Finally, we expose the Memory-Constrained Multi- View Vocabulary Trees. 3.1.1 Multi-View Features The main improvement of mobile 3D visual search comes from the usage of multiple images taken from different perspectives for each object. To handle them, we use multi-view features, as explained in Section 2.2.1, and we organize them in a hierarchical pyramid in function of the number of views where they appear. The descriptors from the top are very relevant, while the ones in the bottom levels are usually from background objects that are less helpful [34]. Thus, we decided to truncate the database from top to down, using a small set of high quality descriptors and discarding the less discriminative ones. 1We use codebook and visual vocabulary as synonyms 27 3.1.2 Codebook Universality Codebook universality is a current research topic [35]. The idea of a universal codebook consists on creating a general visual vocabulary from a huge number of feature descriptors of a big variety of objects that can fill all the descriptor subspace. Thus, it would be suitable for applications with objects of different nature. From the VT perspective, once a general tree (a VT with a universal codebook, the leaf nodes of the tree) is built from a big enough database, it could be used with others after a training. This training would consist on passing the descriptors from our database through this VT and just set the TF-IDF weights. Any clustering would be needed here because the structure of the tree would have been already constructed. It is much simpler than building the whole tree from the beginning. A universal visual vocabulary has some advantages and also disadvantages. On the one hand, the off-line process of generating a VT for our application would be much faster with a general codebook, because the clustering is already done. It also allows an on-the-fly insertion of new image descriptors. On the other hand, the universal codebook approach comes from text processing and while in a language there is a limited number of words with which all texts can be constructed, in image processing most researchers do not think there is a universal codebook for all image databases. Furthermore, a universal vocabulary would probably occupy a large storage space that would result useless in some applications, specially when these are very specific. For example, in an application about the artworks of a concrete museum, why should we use a VT that contemplates all possible objects when just a limited number of visual words will appear in the paintings? The usual tendency is to build the codebooks for given databases and not use them in others. In [35], the authors study the possibility of building general visual vocabularies. Their conclusion is that it is possible, but the database that creates the codebooks has to be very large. They also state that the behavior of the codebook is more complicated than expected and further works are required. Due to the above mentioned reasons and the particularities of our database (we use multiple images per object instead of single images), we chose to build a specific VT, as many other works do [36]. 3.1.3 Memory-Constrained Multi-View Vocabulary Trees The next step regarding the visual vocabulary is to decide its size, the number of visual words (given by kand D) that we will create from our database. There is a trade-off between the size of the vocabulary tree and its retrieval performance. If it is too small, the performance of the matching will be very poor; if it is too large, it will perform well but it will be harder to store and will consume more time in the matching process. It has been shown in [5] that the memory occupation of the vocabulary tree is linear in the number of leaf nodes KD. For N-dimensional descriptors represented with single precision, the size of the tree is approximately 4NKDbytes. 28 On the one hand, it is desirable to build a tree with a high number of visual words for a given database, because the clusters will be small and the quantization error will be reduced. The problem is that to build such VT with a high number of visual words in a big database composed by millions of descriptors would take a very long clustering time and would increase the storage space in the sever end. Depending on the application and the hardware specifications of the server, the authors of each work decide experimentally how precise can they allow their visual vocabulary to be. In this situation, our solution is, as explained above, the database truncation. It is desirable to choose more discriminative and representative descriptors to generate a tree with a very precise codebook, with a large number of visual words, but still light enough to store it and use efficiently. Without this feature selection we couldn’t build such accurate visual vocabulary because the size of the VT would have been far too big to store it. Instead of building a very large VT for all the database, our strategy consists on keeping a reasonable size of codebook but with well-chosen descriptors. In other words, with our selection method we can build vocabulary trees that offer a very high performance occupying small storage space. With the idea of constructing a big codebook, we have configured our implementation of the hierarchical k-means algorithm to keep growing until the clusters can’t be further partitioned, instead of setting a depth. While it is possible to keep clustering, we do it. In this new scenario, the number of descriptors that form the visual words is very small, always less than k. We call the trees generated with this idea, Memory-Constrained Vocabulary Trees. Under these circumstances, the TF-IDF weighting scheme can be improved to be more discriminative. On the one hand, the weights of the visual words have now a smaller variance, this limits their discriminative power. On the other hand, the tiny size of the clusters makes the system more sensible to the descriptor noise, it is possible that some descriptors fall in wrong cells. For these reasons, we have decided to adapt the scoring scheme. 3.2 Construction of Vocabulary Trees This section focuses on the details of implementing such VT in MatLab. It is divided in two main points. Section 3.2.1, Hierarchical k-means Algorithm, talks about the problems we faced when writing the files that create VT and how we dealt with them. There is a deep explanation, including pseudocode, of how we decided to implement this recursive algorithm. Section 3.2.2, Types of nodes, explains the three different kinds of nodes we have in our implementation of the vocabulary tree. 29 3.2.1 Hierarchical k-means Algorithm The main part of the so-called Hierarchical k-means is, obviously, the popular k-means algorithm. Due to its wide usage, MatLab includes an efficient implementation of the algorithm2and it hasn’t been necessary to write it. However, we had to configure it to obtain a properly behaviour that could be used recursively in the creation of the VT. 3.2.1.1 k-means Set-Up Although k-means is already implemented in MatLab, it is very important to configure the options of the algorithm to make it work as we wish. An important parameter is how to choose the seeds, i.e., the initial points from where the algorithm starts clustering. Depending on this choice, the performance of the algorithm can vary significantly. As described in Section 2.1.3.2 there are many ways of choosing the starting conditions, and no one assures the optimal performance. The Forgy method chooses krandom observations from the data. The Random Partition assigns random clusters to the observations and then calculates their means. The MatLab option uniform selects kpoints randomly from the subspace of the data. Another option called cluster performs a preliminary clustering on a random 10% of the data. There also algorithms focused on finding starting points, such as previously explained Gonzalez’s algorithm [25], or k-means++ [37], which claims to improve the running time of classic k-means, and the quality of the final solution. We tried most of these starting methods to choose the most appropiate. Unfortunately, MatLab incorporated the k-means++ algorithm in the 2014 version, but we didn’t dispose of that version when experimenting with them, so we couldn’t try it. We found that the most interesting ways to choose the seeds in our application were two: the Forgy method and Gonzalez’s algorithm3. The solution we decided to use to avoid the local minima when using the Forgy method is to run k-means several times with different random initial points and take the realization wich gives the better results. This is not necessary in Gonzalez’s algorithm. Due to its deterministic behaviour, we always get the same clusters when we run it with the same parameters, because it always extracts the same starting points from the dataset. Thus, just one iteration is needed. However, we finally chose the Forgy method (in MatLab it is called sample) because after some realizations we usually get a higher performance than with Gonzalez’s algorithm. It is something usual in k-means that at some point a cluster loses all its observations and becomes an empty cluster. There is a limited number of options here. The first one is considering it an error and stop the algorithm. The second is to remove the empty cluster and continue with the clustering but with one cluster less (K-1 clusters). This option doesn’t suit us because we need 2MatLab k-means page: http://es.mathworks.com/help/stats/kmeans.html 3We experimented with the implemented version in MatLab carried out by Yuan Yao, available in http://math.stanford.edu/~yuany/pku/matlab/kcenter.m 30 to have exactly kclusters at each level of the VT. The option we chose is called singleton in MatLab. It consists on creating a new cluster formed by the point which is further from any other cluster and continue the process as usually. It has demonstrated to be a good solution. Regarding the distance function used to measure the distance between the points, there are several choices: Euclidean, Hamming, cityblock, cosine... Although in [5] the authors state that they get better results with L1-norm distance, we observed a better performance when using L2-norm distance, i.e., Euclidean distance, which is also a common choice [1]. The last parameter we modified is the maximum number of iterations. kmeans is an iterative algorithm, it starts clustering with kinitial points and each iteration refines this clustering. It stops when there isn’t any change from one iteration to another, i.e., when it finds convergence. The problem is that the algorithm can get stuck trying to converge without achieving it, consuming large amounts of time. In order to avoid an excessive time consumption, we need to limit the number of iterations. This limitation has to be large enough to assure a proper clustering (achieving convergence or at least to get close to it) but it also has to be small to avoid unnecessary iterations. There isn’t a right choice in this issue, it depends on the data, its distribution, the starting points, the branching factor... MatLab uses a limit of 100 iterations, but we increased it to 1000 due to the difficulty of clustering SIFT descriptors and to ensure a good clustering. 3.2.1.2 Structure of Hierarchical k-means Now that it is clear how we configured k-means, it is time to apply it recursively to create the different levels of the VT. To do it, the way we have structured the program of Hierarchical k-means is the following (in pseudocode): function Hierarchical k-means(data,k,D) Initialization of the tree Recurse(data,k,D) function Recurse(data,k,D) L=size(data) if current depth=D OR L<k then Create leaf nodes and add them to the VT Break end if clusters=k-means(data,k) Add cluster centers to the VT for i=1:k do Recurse(clusters(i),k,D) end for end function end function 31 The main program gets as inputs the data that we are going to cluster and the two main parameters of the VT: the branching factor kand the depth D. The first we do is to initialize the tree: we create the root node (the variable that holds the whole VT) and initialize other parameters. Then, we call the function Recurse, which is in charge of applying k-means recursively. Within Recurse, the first step is to check if we have reached Dand thus we need to stop growing. The tree doesn’t grow uniformly, the number of descriptors that are contained in the resulting cells after a partition are usually different. For this reason, we have configured our implementation of the hierarchical k-means algorithm to stop growing under two circumstances: •The depth Dis reached. •The depth Dis not reached but a cluster can’t be further partitioned because it contains less than kdescriptors. In both situations we can’t continue clustering and it is necessary to "cut the branch". At this point, we create the leaf nodes, add them to the VT and exit the program. If the algorithm didn’t get into the if, it means that we have to continue executing k-means on the data that Recurse received. After doing it, we have kresulting clusters with their respective kcluster centers. We add the centers to the VT corpus in the corresponding level and use a for loop to send separately to Recurse all the observations that belong to the different clusters. All the process is performed again until every branch of the VT reaches D or gets less than kdescriptors within a cluster. 3.2.2 Types of Nodes Now that we have shown how to build the VT, we will explain the different types of nodes that compose it. There are three different types of nodes in our implementation: the root node, the inner nodes and the leaf nodes. Each of them has different characteristics and purposes. We explain them in this subsection. 3.2.2.1 Root node There is only one root node in the VT and it contains the whole tree. It has some parameters that give information about the tree: •K: Branch factor. It is the number of branches that "born" from the root and inner nodes. This means that every node of the VT, except for the leaf nodes, have k"sons". •Depth: The maximum level that can achieve the tree. It defines, besides K, the shape of the tree. As explained above, we can’t guarantee that all the branches will grow until reach this depth. Some of them will stop growing before if a cell can’t be further partitioned due to the lack of data. 32 •Leaf nodes: Number of leaf nodes that have been created in the VT. •w: This is a vector needed in the matching process. It contains the parameter nkof the TF-IDF weighting scheme, i.e., it indicates how many descriptors has each object of the database. •Quality: It is the average distance between the leaf nodes centroids and the data-points. We could think about it as the average quantization error committed in the clustering. We called this parameter Quality because it gives a general idea about the performance of the tree. If we build a small tree compared to the amount of data, this parameter will be high and the matching process will perform poorly. The same happens in the other way around. We can’t define it as the main factor that defines the performance of the VT because many other are also important. •sub: A structure with the first level of kinner nodes. It contains all the VT. 3.2.2.2 Inner nodes These nodes are situated between the root node and the leaf nodes. They form the "body" of the tree. Each of them is a structure with three parameters: •Center: The centroids of the clusters. They have the same dimension as the feature descriptors, in this case 128. They are visual words, computed by the k-means algorithm as the mean of all the observations assigned to the cluster. •sub: The k"sons" of the node. They can be either inner or leaf nodes, depending on which level they are. •idx: It is a vector containing the path of the tree until reaching the node. The length of this vector is the level of its node, and their components describe which node composes the path in every level. Figure 3.1: Example of Vocabulary Tree showing the different kinds of nodes 33 3.2.2.3 Leaf nodes The last kind of nodes are the ones that don’t have "sons", because they are in the last level of the branch. They can be created either because the depth Dhas been reached or because there weren’t enough descriptors in the cluster to perform another division. There are up to KDleaf nodes in a tree. They are very important because they are the visual words that compose our visual vocabulary. Each leaf node stores the following information: •Center: The centroids of the clusters. They have the same dimension as the feature descriptors, in this case 128. They are visual words, computed by the k-means algorithm as the mean of all the observations assigned to the cluster. In this case, they compose the visual vocabulary of our database. •sub: The inverted index. It is a table made of two rows. The first row contains the IDs of the objects that have some descriptors in this cluster. The second one indicates the ni,k parameter from the TF-IDF weighting scheme, i.e., the number of occurrences of the visual word iin the k-th object. We could also define it as the count of how many descriptors has each object in this cluster. In the i-th leaf node: Figure 3.2: Inverted Index •w: The weight of the visual word. It is the idf parameter explained in the Section 2.1.3.4. This parameter quantifies the importance of the visual word depending on the number of objects where it appears. It is necessary in the matching process. •des: The locations of the descriptors that belong to this cluster in their respective images. We store them because we need them in the Geometric Verification step. •idx: It is a vector containing the path of the tree until reaching the node. The length of this vector is the level of its node, and their components describe which node composes the path in every level. It is important to notice that the feature descriptors are not stored in the leaf nodes. We only keep their locations in the different views of the objects and the inverted index. Consequently, we save an important storage space. 34 Figure 4.2: Comparison between codebook sizes We demonstrate that given a database, the performance increases significantly when the number of leaf nodes is higher, due to a more accurate quantization. 4.2.3 Memory-Constrained Vocabulary Trees From the two previous experiments we can extract two conclusions: the VT performance is increased with a good selection of multi-view features and also when the size of the visual vocabulary is big related to the size of the database. In this third experiment, we show the improvement in the recall rate that we obtain when we combine these two ideas in the Memory Constrained Vocabulary Tree with the Object-based TF-IDF. We have built two trees with the same shape: k= 8, and D= 5. The difference between them is the number of descriptors from the database that we have used in the process. In blue we can see the tree made using the whole database, without truncating it at any point (508061). In red we can see the behaviour of the Memory Constrained Vocabulary Tree, that has been built using a truncation to get the top features from the pyramidal structure. The number of descriptors used in this tree has been 116517. The improvement in the recall rate is significant. Figure 4.3: Memory-constrained vocabulary tree 41 The truncation has been done between groups of descriptors, using complete levels of the pyramid. In other words, we don’t split the levels, we load them completely. In this particular VT the process of selecting the features has consisted on loading level per level, for every object, starting from the top, until we have at least a 15% of the total descriptors of the object. Some objects have more descriptors than others in the construction of the VT, but the TF-IDF weighting scheme corrects that detail. 4.2.4 3D Geometric Verification Finally, the last experiment has been designed to show the different performances of some Geometric Verification methods. We have used the 2D RANSAC (very used in conventional MVS), 3D RANSAC, and our new creation, Fast 3D Geometric Verification. The VT tested is the same memory-constrained VT used in the previous experiment. Although the recalls can seem similar (especially for RANSAC 3D and the Fast 3D), there is an important improvement on complexity in the Fast 3D. For this reason, it is more suitable for a practical implementation. Figure 4.4: Comparison between GV methods 4.3 Computational Complexity of Matching One of the most important characteristics of the vocabulary tree is its efficiency. It is only needed to make Kdot products per level, to calculate the Euclidean distance between the query descriptor and the nodes of the VT. In total, KD dot products are enough to find the leaf node that best suits a query feature descriptor. This is, along its reduced storage space, the reason for its usage in MVS. About the GV, the Fast 3D Geometric Verification is also improving the efficiency. To obtain a top five ranked images, the fast 3D geometric verification method needs only 0.16 seconds to achieve an average recall of 90%. The 2D RANSAC algorithm needs 3 seconds and the 3D RANSAC algorithm needs 13 seconds to achieve the same recall level. 42 Chapter 5 Conclusions In this chapter, the last one of the thesis, a short summary of the work done in the thesis is presented, along with some possible ways to affront the future work regarding the multi-view vocabulary trees in mobile 3D visual search. 5.1 Summary of Results The most important conclusion from our work is that we have constructed different from conventional vocabulary trees based on a multi-view approach for real-time mobile 3D visual search that has demonstrated to outperform significantly the current recall-rate of MVS. Also, it doesn’t need a higher storage space in the server, even less space is needed to handle it. We call this new kind of VT Memory Constrained Vocabulary Tree. Its construction has been possible thanks to the multi-view features extracted using a multiple images for each object. By structuring them in a hierarchical pyramid, we are able to select a small number of high quality features to construct a memory-efficient vocabulary trees for low computation complexity requirements. We have designed a new scoring function to improve the recognition performance of multi-view vocabulary tree. We modified the TF-IDF weighting scheme to create the Object-based TF-IDF, that can give better results for our trees. On the other hand, as the 3D geometry information is incorporated in the multi-view vocabulary tree, it allows us to design an algorithm for fast 3D geometric verification that results more efficient than the RANSAC-based models. The experimental results show that our multi-view vocabulary trees improve the recall-datarate performance significantly. 43 5.2 Future Work In this last section, we comment some possible ways of improving the multi-view vocabulary tree and improve the work. •Something interesting would be to try our method in bigger databases. Our database Stockholm Buildings contains only 254 images for 50 different objects, which is quite small compared to the thousands of objects that can form databases used in real applications. To know the performance of our work in a more realistic application much more images are needed. •Another possible improvement could be to experiment with new TF-IDF weighting schemes that maybe could give us a better performance. We only use the leaf nodes in the weighting, but some approaches apply a hierarchical scoring, i.e., they use all the nodes of the path across the tree from the root to the leaf node. •An exhaustive study about different ways of selecting the features from the top of the hierarchical pyramid could be also an interesting option. 44 Bibliography [1] B. Girod, V. Chandrasekhar, D. Chen, N.-M. Cheung, R. Grzeszczuk, Y. Reznik, G. Takacs, S. Tsai, and R. Vedantham, “Mobile visual search,” Signal Processing Magazine, IEEE, vol. 28, no. 4, pp. 61–76, July 2011. [2] B. Girod, V. Chandrasekhar, R. Grzeszczuk, and Y. Reznik, “Mobile visual search: Architectures, technologies, and the emerging mpeg standard,” MultiMedia, IEEE, vol. 18, no. 3, pp. 86–94, March 2011. [3] H. Li and M. Flierl, “Mobile 3d visual search using the helmert transformation of stereo features,” in ICIP’13, 2013, pp. 3470–3474. [4] L. Fei-Fei and P. Perona, “A bayesian hierarchical model for learning natural scene categories,” in Computer Vision and Pattern Recognition, 2005. CVPR 2005. IEEE Computer Society Conference on, vol. 2, June 2005, pp. 524–531 vol. 2. [5] D. Nister and H. Stewenius, “Scalable recognition with a vocabulary tree,” in Computer Vision and Pattern Recognition, 2006 IEEE Computer Society Conference on, vol. 2, 2006, pp. 2161–2168. [6] D. Lowe, “Object recognition from local scale-invariant features,” in Computer Vision, 1999. The Proceedings of the Seventh IEEE International Conference on, vol. 2, 1999, pp. 1150–1157 vol.2. [7] H. Bay, T. Tuytelaars, and L. V. Gool, “Surf: Speeded up robust features,” in In ECCV, 2006, pp. 404–417. [8] V. Chandrasekhar, G. Takacs, D. Chen, S. Tsai, R. Grzeszczuk, and B. Girod, “Chog: Compressed histogram of gradients a low bit-rate feature descriptor,” in Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, June 2009, pp. 2504–2511. [9] G. Takacs, Y. Xiong, R. Grzeszczuk, V. Chandrasekhar, W. chao Chen, K. Pulli, N. Gelfand, T. Bismpigiannis, and B. Girod, “Outdoors augmented reality on mobile phone using loxel-based visual feature organization,” in In Proceeding of ACM international conference on Multimedia Information Retrieval, 2008, pp. 427–434. [10] S. Chatzichristofis and Y. Boutalis, “Fcth: Fuzzy color and texture histogram - a low level feature for accurate image retrieval,” in Image Analysis for Multimedia Interactive Services, 2008. WIAMIS ’08. Ninth International Workshop on, May 2008, pp. 191–196. 45 [11] A. Oliva and A. Torralba, “Modeling the shape of the scene: A holistic representation of the spatial envelope,” International Journal of Computer Vision, vol. 42, pp. 145–175, 2001. [12] E. Rosten, R. Porter, and T. Drummond, “Faster and better: A machine learning approach to corner detection,” Pattern Analysis and Machine Intelligence, IEEE Transactions on, vol. 32, no. 1, pp. 105–119, Jan 2010. [13] S. Leutenegger, M. Chli, and R. Siegwart, “Brisk: Binary robust invariant scalable keypoints,” in Computer Vision (ICCV), 2011 IEEE International Conference on, Nov 2011, pp. 2548–2555. [14] E. Rublee, V. Rabaud, K. Konolige, and G. Bradski, “Orb: An efficient alternative to sift or surf,” in Computer Vision (ICCV), 2011 IEEE International Conference on, Nov 2011, pp. 2564–2571. [15] H. Bannour, L. Hlaoua, and B. el Ayeb, “Survey of the adequate descriptor for content-based image retrieval on the web: Global versus local features,” in (CORIA 2009) COnférence en Recherche d’Infomations et Applications, 6th French Information Retrieval Conference, Presqu’île de Giens, France, 2009, pp. 445–456. [16] M. Douze, H. Jégou, H. Sandhawalia, L. Amsaleg, and C. Schmid, “Evaluation of gist descriptors for web-scale image search,” in International Conference on Image and Video Retrieval. ACM, july 2009. [Online]. Available: http://lear.inrialpes.fr/pubs/2009/DJSAS09 [17] K. Grauman and B. Leibe, Visual Object Recognition. Morgan and Claypool Publishers, 2011. [18] T. Tuytelaars and K. Mikolajczyk, “Local invariant feature detectors: A survey,” FnT Comp. Graphics and Vision, pp. 177–280, 2008. [19] D. G. Lowe, “Distinctive image features from scale-invariant keypoints,” International Journal of Computer Vision, vol. 60, pp. 91–110, 2004. [20] Y. Meng and D. B. Tiddeman(supervisor), “Implementing the scale invariant feature transform(sift) method.” [21] T. Lindeberg, “Scale Invariant Feature Transform,” vol. 7, no. 5, p. 10491, 2012, revision 142692. [22] S. Winder, G. Hua, and M. Brown, “Picking the best daisy,” in Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, June 2009, pp. 178–185. [23] J. Sivic and A. Zisserman, “Video google: a text retrieval approach to object matching in videos,” in Computer Vision, 2003. Proceedings. Ninth IEEE International Conference on, Oct 2003, pp. 1470–1477 vol.2. [24] H.-H. Bock, “Clustering methods: A history of k-means algorithms,” in Selected Contributions in Data Analysis and Classification, ser. Studies in Classification, Data Analysis, and Knowledge Organization, P. Brito, G. Cucumel, P. Bertrand, and F. de Carvalho, Eds. Springer Berlin Heidelberg, 2007, pp. 161–172. [Online]. Available: http://dx.doi.org/10.1007/978-3-540-73560-1_15 46 [25] T. F. Gonzalez, “Clustering to minimize the maximum intercluster distance,” Theor. Comput. Sci., vol. 38, pp. 293–306, 1985. [Online]. Available: http://dx.doi.org/10.1016/0304-3975(85)90224-5 [26] J. Philbin, O. Chum, M. Isard, J. Sivic, and A. Zisserman, “Object retrieval with large vocabularies and fast spatial matching,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2007. [27] R. A. Baeza-Yates and B. Ribeiro-Neto, Modern Information Retrieval. Boston, MA, USA: Addison-Wesley Longman Publishing Co., Inc., 1999. [28] X. Wang, M. Yang, and K. Yu, “Efficient re-ranking in vocabulary tree based image retrieval,” in Signals, Systems and Computers (ASILOMAR), 2011 Conference Record of the Forty Fifth Asilomar Conference on, Nov 2011, pp. 855–859. [29] S. Robertson, S. Walker, S. Jones, M. Hancock-Beaulieu, and M. Gatford, “Okapi at trec-3,” 1996, pp. 109–126. [30] C. Moulin, C. Barat, and C. Ducottet, “Fusion of tf.idf weighted bag of visual features for image classification,” in Content-Based Multimedia Indexing (CBMI), 2010 International Workshop on, June 2010, pp. 1–6. [31] M. A. Fischler and R. C. Bolles, “Random sample consensus: A paradigm for model fitting with applications to image analysis and automated cartography,” Commun. ACM, vol. 24, no. 6, pp. 381–395, Jun. 1981. [Online]. Available: http://doi.acm.org/10.1145/358669.358692 [32] S. S. Tsai, D. M. Chen, G. Takacs, V. Chandrasekhar, R. Vedantham, R. Grzeszczuk, and B. Girod, “Fast geometric re-ranking for image-based retrieval,” in Proceedings of the International Conference on Image Processing, ICIP 2010, September 26-29, Hong Kong, China, 2010, pp. 1029–1032. [33] D. E. Mars, H. Wu, H. Li, and M. Flierl, “Multi-view vocabulary tree using fast 3d geometric verification embedded matching and ranking,” in Submitted to IEEE Data Compression Conference (DCC), 2014, October 2014. [34] X. Lyu, H. Li, and M. Flierl, “Hierarchically structured multi-view features for mobile visual search,” in Data Compression Conference (DCC), 2014, March 2014, pp. 23–32. [35] J. H. Wei-Xue Liu and H. R. Karimi, “Research on vocabulary sizes and codebook universality,” Abstract and Applied Analysis, vol. 2014, 2014. [36] G. Schindler, M. Brown, and R. Szeliski, “City-scale location recognition,” in 2007 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2007), 18-23 June 2007, Minneapolis, Minnesota, USA, 2007. [37] D. Arthur and S. Vassilvitskii, “K-means++: the advantages of careful seeding,” in In Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms, 2007. 47