-
大小: 11KB文件類型: .zip金幣: 2下載: 0 次發布日期: 2021-05-16
- 語言: Matlab
- 標簽: image_stitch??
資源簡介
圖像拼接是一項應用廣泛的圖像處理技術。根據特征點的相互匹配,可以將多張小視角的圖像拼接成為一張大視角的圖像。附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
%?%自適應非最大抑制
%?%對于每個Harris?Corner點,最小抑制半徑為
%?從該點到具有更高點的不同點的最小距離%
%?角落強度%。
%?%輸入:
%?%xp,yp?-?哈里斯角點的坐標
%?%value?-?抑制強度
%?%n?-?有趣點數
%?%輸出:
%?%newx,newy?-?自適應非最大值抑制后的新x和y坐標
%?%值?-?自適應非最大抑制后的抑制強度
%?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);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????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
- 上一篇:遺傳算法求pid
- 下一篇:基于空間幾何變換的人臉對齊(Matlab內置函數
評論
共有 條評論