matlabmagic矩陣,高斯金字塔 matlab,圖像拼接中 高斯金字塔的建立 matlab程序詳細解釋 現金獎勵...

 2023-11-11 阅读 16 评论 0

摘要:該樓層疑似違規已被系統折疊?隱藏此樓查看此樓function [gauss_pyr] = build_gauss_pyr(base, octvs,intvls,sigma)matlabmagic矩陣,sig = zeros(1,intvls+3);gauss_pyr = cell(octvs,intvls+3);sig(1) = sigma;高斯三角,k = 2^(1/intvls);inde

該樓層疑似違規已被系統折疊?隱藏此樓查看此樓

function [gauss_pyr] = build_gauss_pyr(base, octvs,intvls,sigma)

matlabmagic矩陣,sig = zeros(1,intvls+3);

gauss_pyr = cell(octvs,intvls+3);

sig(1) = sigma;

高斯三角,k = 2^(1/intvls);

index = 1:intvls +2;

sig_prev = k.^(index-1)*sigma;

金字塔結構、sig_total = sig_prev*k;

sig(index+1)=sqrt(sig_total.^2-sig_prev.^2);

for oc =1:octvs

高斯,for in = 1:intvls+3

if oc ==1 && in ==1

gauss_pyr{oc,in} = base;

elseif in ==1

subSize = floor(size(gauss_pyr{oc-1,intvls+1})/2);

gauss_pyr{oc,in} = imresize(gauss_pyr{oc-1,intvls+1},subSize,'bicubic');

else

g=gaussian_filter(sig(in));

tmp=imfilter(gauss_pyr{oc,in-1},g,'conv','replicate'); % run the filter across rows

gauss_pyr{oc,in}=imfilter(tmp,g','conv','replicate'); % and then across columns

end

end

end

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/5/171034.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息