using namespace std;
using namespace cv;
Mat query; //the query image
vector<Mat> images; //set of images in your db
/* ... get the images from somewhere ... */
vector<vector<KeyPoint> > dbKeypoints;
/* ... Extract the descriptors ... */
//train with descriptors from your db
vector<DMatch > matches;
/* for kk=0 to matches.size()
the best match for queryKeypoints[matches[kk].queryIdx].pt
How to Install Matplotlib Basemap Module on Windows 7 with WinPython (or any Python stack install)?
around this issue I use windows. And my installation failed with official guidance, too. Finally I installed Basemap using the following method. Although I am not sure if it will go right for you, I just offer mine.
Strongloop fails to install in Windows 7, firstname.lastname@example.org Failed to exec install script
it fixes the issue I found the answer. In case when both pip and easy_install fails, there is a third way (as simple as pip and easy_install). Step 1) Go to https://pypi.python.org/ to find the desired python module/package and download the *.tar.gz file (example name: plotly-1.9.6.tar.gz) and save it anywhere.