資源簡介
這是一個VC畢業設計,全景圖拼接算法實戰源碼+論文。算法基本思想,圖像A和B,A有至少1/3部分與B重合,在A中找圖像塊a,在B中找圖像塊b,利用夾角余弦距離,求a 、b的相似度,利用循環使b在B中移動,找到相似度最大的圖像塊b。通過b所在點坐標,確定B相對于A的偏移量。通過偏移量將A和B放在同一坐標系實現拼接。
有些情況下圖像亮度相差較大,為減少亮度對拼接效果的影響,提高定位精度需對圖像進行亮度調節。主要方法有:直方圖匹配和函數變換(類似于photoshop中的調整)。此步處理也可放在圖像放拼接后的圖像處理

代碼片段和文件信息
//?ChildFrm.cpp?:?implementation?of?the?CChildframe?class
//?Download?by?http://www.codefans.net
#include?“stdafx.h“
#include?“ting.h“
#include?“ChildFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChildframe
IMPLEMENT_DYNCREATE(CChildframe?CMDIChildWnd)
BEGIN_MESSAGE_MAP(CChildframe?CMDIChildWnd)
//{{AFX_MSG_MAP(CChildframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?construction/destruction
CChildframe::CChildframe()
{
//?TODO:?add?member?initialization?code?here
}
CChildframe::~CChildframe()
{
}
BOOL?CChildframe::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
if(?!CMDIChildWnd::PreCreateWindow(cs)?)
return?FALSE;
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?diagnostics
#ifdef?_DEBUG
void?CChildframe::AssertValid()?const
{
CMDIChildWnd::AssertValid();
}
void?CChildframe::Dump(CDumpContext&?dc)?const
{
CMDIChildWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
-----------?---------??----------?-----??----
??????????????3917999????????????????????41
- 上一篇:?網易易APM數據處理理系統 實踐
- 下一篇:rtai+linux實時系統
評論
共有 條評論