該樓層疑似違規已被系統折疊?隱藏此樓查看此樓
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
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态