抱歉,之前代码中
//挑选匹配的最好的前100个
nth_element(matches.begin(), matches.begin() + 99, matches.end());
matches.erase(matches.begin() + 99, matches.end());
写错了,把99写成00了,所以看不到匹配结果,这里改过来了
————————————————————————————————
这里我主要写了用Opencv 实现Sift特征提取与匹配的代码,如果想看Sift特征的详细描述,请看原文《Distinctive Image Features》或者我最近又写了三篇关于SIFT算法的详细描述
SIFT算法详解(1)综述与尺度空间检测
SIFT算法详解(2)极值点的精确定位与特征点方向的计算