The objective is to be able to compute a fundamental matrix and a set of good matches between two views. To do so, all the found feature point correspondences will be validated using the epipolar constraint introduced in the previous recipe:
- To this end, we have created a class that encapsulates the different steps of the proposed robust matching process:
class RobustMatcher { private: // pointer to the feature point detector object cv::Ptr<cv::FeatureDetector> detector; // pointer to the feature descriptor extractor object cv::Ptr<cv::DescriptorExtractor> extractor; int normType; float ratio; // max ratio between 1st and 2nd NN bool refineF; // if true will refine the F matrix double distance; // min distance to epipolar ...