Feature Matching (SIFT/ORB) of many images of the same oject?
===

Let's say I want to detect an object in a test image.  
I have different images with differente point of view of this object. 

How can I match keypoint of a test image for different object images?

Is there any other way then doing a simple iteration like this:

    //> Pseudo code

    foreach (train image)
      trainDescriptors.push_back(keypoint_current_train_image);

    queryKeypoint = compute keypoint;

    foreach(train image : i) {
       matcher.knnMatch(queryKeypoint, trainDescriptors[i]);
    }

    

Basically here i am saving all the keypoint of training images in a vector than i loop over them to match with the keypoint extracted from query image.