1
我已經計算了描述符,但現在,我想在將其從關鍵點轉換爲浮點數之前清理異常值。處理DMatch矢量,訪問數據Opencv
我知道,這可以通過
BruteForceMatcher<cv::L2<float> > matcher;
std::vector<cv::DMatch> matches;
matcher.match(descriptors1,descriptors2, matches);
std::nth_element(matches.begin(),matches.begin()+24, matches.end());
matches.erase(matches.begin()+25, matches.end());`
自動完成,但如果下一步是借鑑了比賽,這是唯一有用的,實際上是我想要做的是獲得posprocessing最佳的25場比賽在一些圖像註冊的東西。
任何幫助將是有用的。感謝
伊萬