MATCHING PROCESS
In this phase keypoint descriptor are compared in order to find correspondences, this is the find the nearest neighbor problem
Given a set of points in a metric space and a query point , find the closest to
So in this iteration of the problem the keypoints computed on a target image are the query point and the set of point is given by the keypoint learned from a set of training images, the metric space is the space of the sift descriptor with a distance metric (usually euclidean distance)
Is not guaranteed that the is found due to occlusion of the image or exposure changes so a criteria for detecting correct correspondences must be set:
SEARCHING MECHANISM
Searching for the exhaustively is expensive in terms of computation as it goes up with the size of
In order to speed up the matching process the k-d tree indexing technique is used
K-D TREE
Is the generalized form of the binary search algorithm at the case of dimension,
flowchart TD A[create tree] B[navigate tree to find the NN] C[backtracking to improve search] A --> B --> C
The tree is created by splitting in the dimension that shows the highest variance, using the median value
BACKTRACKING
Backtracking is computed from the current candidate
flowchart TD A[consider parent node of NN candidate] B{{distance from parent node \n lowest of distance from NN candidate?}} C{{the hypersphere with center q \n and the distance from q to NN candidate intersects the other split? }} D[consider other split for the search] E[consider parent node] A --> B --yes--> C --yes--> D C --no --> E -->B
The algorithm goes up to the root of the tree and finds the best
BACKTRACKING AND EFFICIENCY
backtracking becomes computationally expensive as the dimension of the space goes up (so in a sift descriptor space is highly inefficient as dimension is )
BEST BIN FIRST (BFF)
Variation of the k-d tree algorithm where traversed node are inserted in a priority queue that is used in the backtracking phase to chose the node to traverse first, the queue is updated in the backtracking phase that ends at the node