SURFとSIFTの簡単な例(C++) samples/cppに収録されたSURFを用いたマッチングの例。 ?DescriptorExtractorの派生としてSIFTも用意されているので比較してみた。 drawMatchesのDEFAULT出力がイマイチなので自前で出力画像を用意する。関連してmixChannelsも参照。 ソース #include <stdio.h> #include <opencv2/core/core.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/highgui/highgui.hpp> //#define USE_SURF using namespace cv; int main(int argc, char** argv) { if(argc != 3) { printf(