I have a question about objects matching with OpenCV. I\'m useing SURF algorithm implemented in opencv 2.3 to first detect features on each image, and then extracting the de
For removing outliers RANSAC + homography is a good method when comparing two planar images.
Homography is the model that RANSAC will try to use to compare points from both images and it will find the best set of points that better fit the projection model of the homography (the transformation from one plane to another).
cv::findHomography(srcPoints,dstPoints, RANSAC, status);
The function above will return an array status that has a 1 for indices considered inliers and 0 for indices considered outliers, so you can remove outliers by checking this status array.