資源簡介
使用:Sift算法。用不同尺度(標準差)的高斯函數對圖像進行平滑,然后比較平滑后圖像的差別,
差別大的像素就是特征明顯的點。
該算法主要包括5個步驟進行匹配:
1、構建尺度空間,檢測極值點,獲得尺度不變性;
2、特征點過濾并進行精確定位,剔除不穩定的特征點;
3、在特征點處提取特征描述符,為特征點分配方向值;
4、生成特征描述子,利用特征描述符尋找匹配點;
5、計算變換參數

代碼片段和文件信息
/*M///////////////////////////////////////////////////////////////////////////////////////
//
//??IMPORTANT:?READ?BEFORE?DOWNLOADING?COPYING?INSTALLING?OR?USING.
//
//??By?downloading?copying?installing?or?using?the?software?you?agree?to?this?license.
//??If?you?do?not?agree?to?this?license?do?not?download?install
//??copy?or?use?the?software.
//
//
//??????????????????????????License?Agreement
//????????????????For?Open?Source?Computer?Vision?Library
//
//?Copyright?(C)?2000-2008?Intel?Corporation?all?rights?reserved.
//?Copyright?(C)?2009?Willow?Garage?Inc.?all?rights?reserved.
//?Third?party?copyrights?are?property?of?their?respective?owners.
//
//?Redistribution?and?use?in?source?and?binary?forms?with?or?without?modification
//?are?permitted?provided?that?the?following?conditions?are?met:
//
//???*?Redistribution‘s?of?source?code?must?retain?the?above?copyright?notice
//?????this?list?of?conditions?and?the?following?disclaimer.
//
//???*?Redistribution‘s?in?binary?form?must?reproduce?the?above?copyright?notice
//?????this?list?of?conditions?and?the?following?disclaimer?in?the?documentation
//?????and/or?other?materials?provided?with?the?distribution.
//
//???*?The?name?of?the?copyright?holders?may?not?be?used?to?endorse?or?promote?products
//?????derived?from?this?software?without?specific?prior?written?permission.
//
//?This?software?is?provided?by?the?copyright?holders?and?contributors?“as?is“?and
//?any?express?or?implied?warranties?including?but?not?limited?to?the?implied
//?warranties?of?merchantability?and?fitness?for?a?particular?purpose?are?disclaimed.
//?In?no?event?shall?the?Intel?Corporation?or?contributors?be?liable?for?any?direct
//?indirect?incidental?special?exemplary?or?consequential?damages
//?(including?but?not?limited?to?procurement?of?substitute?goods?or?services;
//?loss?of?use?data?or?profits;?or?business?interruption)?however?caused
//?and?on?any?theory?of?liability?whether?in?contract?strict?liability
//?or?tort?(including?negligence?or?otherwise)?arising?in?any?way?out?of
//?the?use?of?this?software?even?if?advised?of?the?possibility?of?such?damage.
//
//M*/
#include?
#include?
#include?“opencv2/highgui/highgui.hpp“
#include?“opencv2/stitching/stitcher.hpp“
using?namespace?std;
using?namespace?cv;
bool?try_use_gpu?=?false;
vector?imgs;
string?result_name?=?“result.jpg“;
void?printUsage();
int?parseCmdArgs(int?argc?char**?argv);
int?main(int?argc?char*?argv[])
{
????int?retval?=?parseCmdArgs(argc?argv);
????if?(retval)?return?-1;
????Mat?pano;
????Stitcher?stitcher?=?Stitcher::createDefault(try_use_gpu);
????Stitcher::Status?status?=?stitcher.stitch(imgs?pano);
????if?(status?!=?Stitcher::OK)
????{
????????cout?<“Can‘t?stitch?images?error?code?=?“?<????????return?-1;
????}
????imwrite(result_name?pano);
????return?0;
}
void?printUsage()
{
????cout?<<
????????“Rotation?model?images?stitcher.\n\n“
????????“stitching?img1?img2?[...i
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-07-05?18:07??imageStitching\.vs\
?????目錄???????????0??2018-07-05?18:07??imageStitching\.vs\imageStitching\
?????目錄???????????0??2018-07-05?18:07??imageStitching\.vs\imageStitching\v14\
?????文件???????22528??2018-07-05?19:30??imageStitching\.vs\imageStitching\v14\.suo
?????目錄???????????0??2018-07-05?18:07??imageStitching\Backup\
?????文件?????????908??2012-05-21?16:55??imageStitching\Backup\imageStitching.sln
?????目錄???????????0??2018-07-05?18:07??imageStitching\Backup\imageStitching\
?????目錄???????????0??2012-05-21?17:00??imageStitching\Debug\
?????文件??????100352??2012-05-21?16:58??imageStitching\Debug\imageStitching.exe
?????文件??????554984??2012-05-21?16:58??imageStitching\Debug\imageStitching.ilk
?????文件?????1534976??2012-05-21?16:58??imageStitching\Debug\imageStitching.pdb
?????文件??????317368??2012-04-25?04:25??imageStitching\Debug\tbb_debug.dll
?????文件????10136576??2012-05-22?16:58??imageStitching\imageStitching.ncb
?????文件?????????986??2018-07-05?18:07??imageStitching\imageStitching.sln
?????文件????????8704??2012-05-22?16:58??imageStitching\imageStitching.suo
?????文件?????8323072??2018-07-05?19:30??imageStitching\imageStitching.VC.db
?????目錄???????????0??2018-07-05?19:30??imageStitching\imageStitching\
?????文件??????507274??2012-05-21?16:54??imageStitching\imageStitching\1.jpg
?????文件??????500875??2012-05-21?16:54??imageStitching\imageStitching\2.jpg
?????文件??????497205??2012-05-21?16:54??imageStitching\imageStitching\3.jpg
?????目錄???????????0??2018-07-05?19:07??imageStitching\imageStitching\Debug\
?????文件????????5306??2012-05-21?16:58??imageStitching\imageStitching\Debug\BuildLog.htm
?????文件?????????621??2012-05-21?16:58??imageStitching\imageStitching\Debug\imageStitching.exe.intermediate.manifest
?????目錄???????????0??2018-07-05?19:07??imageStitching\imageStitching\Debug\imageStitching.tlog\
?????文件??????????67??2012-05-21?16:58??imageStitching\imageStitching\Debug\mt.dep
?????文件??????400030??2012-05-21?16:57??imageStitching\imageStitching\Debug\stitching.obj
?????文件??????707584??2012-05-21?16:57??imageStitching\imageStitching\Debug\vc90.idb
?????文件?????1028096??2012-05-21?16:57??imageStitching\imageStitching\Debug\vc90.pdb
?????文件????????3757??2012-05-21?16:58??imageStitching\imageStitching\imageStitching.vcproj
?????文件????????1441??2012-05-22?16:58??imageStitching\imageStitching\imageStitching.vcproj.HP98402794308.Administrator.user
?????文件????????4309??2018-07-05?18:07??imageStitching\imageStitching\imageStitching.vcxproj
............此處省略5個文件信息
- 上一篇:51單片機開發板PCB 原理圖
- 下一篇:從局部到整體:5G系統觀-完整版.pdf
評論
共有 條評論