能不能详细给解释下下面的程序?function [x,y,gx,gy,par,threshold,mag,mage,g,FIe,FIo,mago] = quadedgep(I,par,threshold);if nargin fix(j) + 0.1),winsz = winsz + 1;end% filter the image with quadrature filtersFBo = make_filterbank_odd2(n_fil
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 04:59:13
能不能详细给解释下下面的程序?function [x,y,gx,gy,par,threshold,mag,mage,g,FIe,FIo,mago] = quadedgep(I,par,threshold);if nargin fix(j) + 0.1),winsz = winsz + 1;end% filter the image with quadrature filtersFBo = make_filterbank_odd2(n_fil
能不能详细给解释下下面的程序?
function [x,y,gx,gy,par,threshold,mag,mage,g,FIe,FIo,mago] = quadedgep(I,par,threshold);
if nargin fix(j) + 0.1),
winsz = winsz + 1;
end
% filter the image with quadrature filters
FBo = make_filterbank_odd2(n_filter,n_scale,winsz,enlong);
FBe = make_filterbank_even2(n_filter,n_scale,winsz,enlong);
n = ceil(winsz/2);
f = [fliplr(I(:,2:n+1)),I,fliplr(I(:,c-n:c-1))];
f = [flipud(f(2:n+1,:)); f; flipud(f(r-n:r-1,:))];
FIo = fft_filt_2(f,FBo,1);
FIo = FIo(n+[1:r],n+[1:c],:);
FIe = fft_filt_2(f,FBe,1);
FIe = FIe(n+[1:r],n+[1:c],:);
mag = sqrt(sum(FIo.^2,3)+sum(FIe.^2,3));
mag_a = sqrt(FIo.^2+FIe.^2);
[tmp,max_id] = max(mag_a,[],3);
base_size = r * c;
id = [1:base_size]';
mage = reshape(FIe(id+(max_id(:)-1)*base_size),[r,c]);
mage = (mage>0) - (mage
能不能详细给解释下下面的程序?function [x,y,gx,gy,par,threshold,mag,mage,g,FIe,FIo,mago] = quadedgep(I,par,threshold);if nargin fix(j) + 0.1),winsz = winsz + 1;end% filter the image with quadrature filtersFBo = make_filterbank_odd2(n_fil
请参考