opencv 编译及Simple

来源:互联网 发布:linux tomcat 启动空白 编辑:程序博客网 时间:2024/06/05 20:37

ubuntu 14 mac

编译

git clone git://github.com/opencv/opencv.gitcd opencvgit checkout 2.4mkdir buildcd buildcmake -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=ON ..make -j8

运行

cd build/bin./c-example-find_obj ../../samples/c/box.png ../../samples/c/box_in_scene.png

结果

This program demonstrated the use of the SURF Detector and Descriptor usingeither FLANN (fast approx nearst neighbor classification) or brute force matchingon planar objects.Usage:./find_obj <object_filename> <scene_filename>, default is box.png  and box_in_scene.pngObject Descriptors: 593Image Descriptors: 782Extraction time = 55.1197msUsing approximate nearest neighbor search

结果示意图

这里写图片描述

这里写图片描述

看了一下代码,也看到一些网上分析的文章,感觉和matlab的用法好像,亲切感+10。


原创粉丝点击