User:Lmyanglei
Wikipedia,自由的百科全书
(修订版本间差异)
19:00 2009年9月25日的修订版本 Lmyanglei (Talk | 贡献) ← Previous diff |
19:03 2009年9月25日的修订版本 Lmyanglei (Talk | 贡献) Next diff → |
||
第 31行: | 第 31行: | ||
=== 配置Windows环境变量 === | === 配置Windows环境变量 === | ||
---- | ---- | ||
- | 请参考: | + | 请参考: |
http://www.opencv.org.cn/index.php/VC_2005_Express%E4%B8%8B%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE | http://www.opencv.org.cn/index.php/VC_2005_Express%E4%B8%8B%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE | ||
同时,检查C:\Program Files\GnuWin32\bin是否已经被加入到环境变量PATH,如果没有,请加入。 | 同时,检查C:\Program Files\GnuWin32\bin是否已经被加入到环境变量PATH,如果没有,请加入。 | ||
第 54行: | 第 54行: | ||
=== 测试Rob Hess源码 === | === 测试Rob Hess源码 === | ||
---- | ---- | ||
- | (1)解压sift-latest_win.zip<br /> | + | (1)解压sift-latest_win.zip |
- | (2)用VC2005打开Solutions:<br /> | + | (2)用VC2005打开Solutions: |
- | \sift-latest_win\sift-1.1.1_20090108_win\siftFeat\ siftFeat.sln<br /> | + | \sift-latest_win\sift-1.1.1_20090108_win\siftFeat\ siftFeat.sln |
- | (3) 设置项目所需要的lib<br /> | + | (3) 设置项目所需要的lib |
- | 如果已经按照上述配置了VC2005,则:<br /> | + | 如果已经按照上述配置了VC2005,则: |
- | 菜单Project -> Properties -> Configuration Properties -> C/C++->General<br /> | + | 菜单Project -> Properties -> Configuration Properties -> C/C++->General |
- | 删除Additional includes Directories中的所有路径;<br /> | + | 删除Additional includes Directories中的所有路径; |
[[Image:sift-13.png]]<br /> | [[Image:sift-13.png]]<br /> | ||
- | 菜单Project -> Properties -> Configuration Properties -> Linker -> General<br /> | + | 菜单Project -> Properties -> Configuration Properties -> Linker -> General |
- | 删除Additional Library Directories中的所有路径;<br /> | + | 删除Additional Library Directories中的所有路径; |
[[Image:sift-14.png]]<br /> | [[Image:sift-14.png]]<br /> | ||
- | 菜单Project -> Properties -> Configuration Properties -> Linker -> Input<br /> | + | 菜单Project -> Properties -> Configuration Properties -> Linker -> Input |
- | 删除Additional Dependencies中的所有文件,并加入以下库文件:<br /> | + | 删除Additional Dependencies中的所有文件,并加入以下库文件: |
- | cxcore.lib cv.lib ml.lib cvaux.lib highgui.lib libgsl.a libgsl.dll.a libgslcblas.a libgslcblas.dll.a<br /> | + | cxcore.lib cv.lib ml.lib cvaux.lib highgui.lib libgsl.a libgsl.dll.a libgslcblas.a libgslcblas.dll.a |
[[Image:sift-15.png]]<br /> | [[Image:sift-15.png]]<br /> | ||
(4)编译运行<br /> | (4)编译运行<br /> | ||
- | 下面就可以编译运行Rob Hess的源码了。<br /> | + | 下面就可以编译运行Rob Hess的源码了。 |
=== 参考资料 === | === 参考资料 === | ||
---- | ---- | ||
- | (1) Rob Hess的首页<br /> | + | (1) Rob Hess的首页 |
- | http://web.engr.oregonstate.edu/%7Ehess/index.html<br /> | + | http://web.engr.oregonstate.edu/%7Ehess/index.html |
- | (2)OpenCV中文论坛<br /> | + | (2)OpenCV中文论坛 |
- | http://www.opencv.org.cn<br /> | + | http://www.opencv.org.cn |
== 作者 == | == 作者 == | ||
---- | ---- | ||
- | lmyanglei<br /> | + | lmyanglei |
- | Email:lmyangei@sohu.com<br /> | + | Email:lmyangei@sohu.com |
- | QQ:908808190<br /> | + | QQ:908808190 |
19:03 2009年9月25日的修订版本
目录 |
编译Rob Hess基于OpenCV的SIFT算法的C语言实现
开发平台
(1)Microsoft Visual Studio 2005
(2)OpenCV 1.0
下载地址:http://www.opencv.org.cn/download/OpenCV_1.0.exe
(3) Gsl 1.8
下载地址:http://jaist.dl.sourceforge.net/project/gnuwin32/gsl/1.8/gsl-1.8.exe 这里用的是:gsl-1.8.exe;
(4) Rob Hess的SIFT算法在VC.net下实现
下载地址:http://web.engr.oregonstate.edu/%7Ehess/downloads/sift/sift-latest_win.zip 这里用的是:sift-latest_win.zip;
平台安装
(1)安装OpenCV1.0
请参考: http://www.opencv.org.cn/index.php/VC_2005_Express%E4%B8%8B%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE
配置Windows环境变量
请参考: http://www.opencv.org.cn/index.php/VC_2005_Express%E4%B8%8B%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE 同时,检查C:\Program Files\GnuWin32\bin是否已经被加入到环境变量PATH,如果没有,请加入。
配置VC 2005
请参考: http://www.opencv.org.cn/index.php/VC_2005_Express%E4%B8%8B%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE 同时 打开VC 2005,选择菜单:Tools -> Options 在弹出窗口中选择Projects and Solutions -> VC++ Directories 首先,从“Show Directories for”的list box中选择“Library files” 假设Gsl安装于“C:\Program Files\GnuWin32” 在库文件列表中,定位并添加: C:\Program Files\GnuWin32\lib
在Include Files中添加 C:\Program Files\GnuWin32\include
测试Rob Hess源码
(1)解压sift-latest_win.zip (2)用VC2005打开Solutions: \sift-latest_win\sift-1.1.1_20090108_win\siftFeat\ siftFeat.sln (3) 设置项目所需要的lib 如果已经按照上述配置了VC2005,则: 菜单Project -> Properties -> Configuration Properties -> C/C++->General 删除Additional includes Directories中的所有路径;
菜单Project -> Properties -> Configuration Properties -> Linker -> General 删除Additional Library Directories中的所有路径;
菜单Project -> Properties -> Configuration Properties -> Linker -> Input 删除Additional Dependencies中的所有文件,并加入以下库文件: cxcore.lib cv.lib ml.lib cvaux.lib highgui.lib libgsl.a libgsl.dll.a libgslcblas.a libgslcblas.dll.a
下面就可以编译运行Rob Hess的源码了。
参考资料
(1) Rob Hess的首页
http://web.engr.oregonstate.edu/%7Ehess/index.html
(2)OpenCV中文论坛 http://www.opencv.org.cn
作者
lmyanglei Email:lmyangei@sohu.com QQ:908808190