資源簡介
本代碼包含了常用的特征點匹配算法,包括sift,surf和光流算法,其中只是利用了opencv的基礎函數來調試,核心部分使用純c代碼,其中sift和光流的算法準確率較高,surf效果一般,這里的光流算法已經得到工程上的應用。這個代碼也是多年前本人寫得代碼,其中算法不足之處請大家多多指教。由于本人自己編寫的機器視覺庫內代碼較多,如果缺了那部分可留言。這些代碼均經過多次測試,應該沒有問題的。
代碼片段和文件信息
#include?“stdafx.h“
#include?
#include??
#include?
#include?“matrix.h“
#include?
#include?
#include?
#include?
//#include?
#include?“imagebase.h“
#include?“image.h“
uchar?ucMax3(uchar?auchar?buchar?c)
{
uchar?maxTmp?=?b;
if(a?>?b)
maxTmp?=?a;
if(c?>?maxTmp)
maxTmp?=?c;
return?maxTmp;
}
uchar?ucMin3(uchar?auchar?buchar?c)
{
uchar?minTmp?=?b;
if(a? minTmp?=?a;
if(c? minTmp?=?c;
return?minTmp;
}
uchar?ucMed3(uchar?auchar?buchar?c)
{
uchar?max0max1med0;
max0?=?MAX(ab);
max1?=?MAX(bc);
med0?=?MIN(max0max1);
return?med0;
}
/*?img_width?--?行???img_height??--??列???channels??--?通道數depth數據類型,uchar:1ushort:2float:4?*/
IMAGE_t*??m
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1160??2017-04-23?12:26??featerMatch\keyPoint.h
?????文件??????51609??2019-04-07?20:38??featerMatch\keypointmatch.cpp
?????文件??????15434??2019-03-26?21:14??featerMatch\videoJitter.cpp
?????文件?????????86??2017-02-12?20:31??featerMatch\videoJitter.h
?????文件??????11137??2019-03-30?20:06??common\image.cpp
?????文件???????4408??2019-03-24?11:36??common\image.h
?????文件??????59788??2019-05-03?19:29??common\imageba
?????文件???????3391??2019-04-09?22:42??common\imageba
?????文件??????14964??2019-05-01?10:18??common\matrix.cpp
?????文件???????1321??2017-10-27?09:43??common\matrix.h
?????目錄??????????0??2019-05-01?09:35??featerMatch
?????目錄??????????0??2019-05-01?09:35??common
-----------?---------??----------?-----??----
???????????????163298????????????????????12
- 上一篇:560顯卡總集BIOS.zip
- 下一篇:長途車站車輛管理軟件需求規格說明書
評論
共有 條評論