-
大小: 2.19MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-14
- 語言: 其他
- 標(biāo)簽:
資源簡介
這是一個(gè)VC畢業(yè)設(shè)計(jì),全景圖拼接算法實(shí)戰(zhàn)源碼+論文。算法基本思想,圖像A和B,A有至少1/3部分與B重合,在A中找圖像塊a,在B中找圖像塊b,利用夾角余弦距離,求a 、b的相似度,利用循環(huán)使b在B中移動(dòng),找到相似度最大的圖像塊b。通過b所在點(diǎn)坐標(biāo),確定B相對(duì)于A的偏移量。通過偏移量將A和B放在同一坐標(biāo)系實(shí)現(xiàn)拼接。
有些情況下圖像亮度相差較大,為減少亮度對(duì)拼接效果的影響,提高定位精度需對(duì)圖像進(jìn)行亮度調(diào)節(jié)。主要方法有:直方圖匹配和函數(shù)變換(類似于photoshop中的調(diào)整)。此步處理也可放在圖像放拼接后的圖像處理

代碼片段和文件信息
//?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
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
-----------?---------??----------?-----??----
??????????????3917999????????????????????41
評(píng)論
共有 條評(píng)論