-
大小: 11KB文件類型: .zip金幣: 2下載: 0 次發(fā)布日期: 2021-05-16
- 語(yǔ)言: Matlab
- 標(biāo)簽: image_stitch??
資源簡(jiǎn)介
圖像拼接是一項(xiàng)應(yīng)用廣泛的圖像處理技術(shù)。根據(jù)特征點(diǎn)的相互匹配,可以將多張小視角的圖像拼接成為一張大視角的圖像。附Matlab代碼function [output_image] = image_stitching(input_A, input_B)

代碼片段和文件信息
function?[newx?newy?newvalue]?=?ada_nonmax_suppression(xp?yp?value?n)
%?Adaptive?non-maximun?suppression?
%?For?each?Harris?Corner?point?the?minimum?suppression?radius?is?the
%?minimum?distance?from?that?point?to?a?different?point?with?a?higher?
%?corner?strength.?
%?Input:
%?xpyp?-?coordinates?of?harris?corner?points
%?value?-?strength?of?suppression
%?n?-?number?of?interesting?points
%?Output:
%?newx?newy?-?new?x?and?y?coordinates?after?adaptive?non-maximun?suppression
%?value?-?strength?of?suppression?after?adaptive?non-maximun?suppression
%?%自適應(yīng)非最大抑制
%?%對(duì)于每個(gè)Harris?Corner點(diǎn),最小抑制半徑為
%?從該點(diǎn)到具有更高點(diǎn)的不同點(diǎn)的最小距離%
%?角落強(qiáng)度%。
%?%輸入:
%?%xp,yp?-?哈里斯角點(diǎn)的坐標(biāo)
%?%value?-?抑制強(qiáng)度
%?%n?-?有趣點(diǎn)數(shù)
%?%輸出:
%?%newx,newy?-?自適應(yīng)非最大值抑制后的新x和y坐標(biāo)
%?%值?-?自適應(yīng)非最大抑制后的抑制強(qiáng)度
%?ALLOCATE?MEMORY
%?newx?=?zeros(n1);
%?newy?=?zeros(n1);
%?newvalue?=?zeros(n1);
if(length(xp)?newx?=?xp;
newy?=?yp;
newvalue?=?value;
return;
end
radius?=?zeros(n1);
c?=?.9;
maxvalue?=?max(value)*c;
for?i=1:length(xp)
if(value(i)>maxvalue)
radius(i)?=?99999999;
continue;
else
dist?=?(xp-xp(i)).^2?+?(yp-yp(i)).^2;
dist((value*c)?radius(i)?=?sqrt(min(dist));
end
end
[~?index]?=?sort(radius‘descend‘);
index?=?index(1:n);
newx?=?xp(index);
newy?=?yp(index);
newvalue?=?value(index);
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-11-03?20:29??pic_processing\
?????文件????????1433??2018-11-03?20:09??pic_processing\ada_nonmax_suppression.m
?????文件????????2445??2018-11-03?20:27??pic_processing\blend.m
?????文件????????1325??2018-11-03?20:12??pic_processing\dist2.m
?????文件????????1021??2018-11-03?20:10??pic_processing\getFeatureDesc
?????文件?????????951??2018-10-19?16:44??pic_processing\getHomographyMatrix.m
?????文件????????1577??2018-11-03?20:28??pic_processing\getNewSize.m
?????文件????????1632??2018-11-03?20:06??pic_processing\harris.m
?????文件????????6604??2018-11-03?20:47??pic_processing\image_stitching.m
?????文件?????????323??2018-10-21?17:00??pic_processing\image_stitching_3.m
?????文件????????1121??2018-10-19?16:44??pic_processing\ransacfithomography.m
評(píng)論
共有 條評(píng)論