|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
大家好!我在使用二维emd程序时,设置参数可能出现错误,程序运行很久没有结果。有哪位用过这个程序的麻烦给看一下,imf_num,errmax,imax该如何设置?非常感谢!
function IMF_all=TwoD_EMD(A,imf_num,errmax,imax);
%INPUT:
% A is the image to be decomposed, given as a rectangular matrix
% imf_num is the number of intrinsic mode functions to be taken from A
% errmax is the maximum error for sift_bicubic
% imax is the maximum number of iterations in sift_bicubic
%-------------------------------------------------------------------
%OUTPUT:
% IMF_all is a 3D array containing each instrinsic mode function
% as well as the final residue
figure(1)
imagesc(A);
colormap(gray);
IMF_all=[];
[m,n]=size(A);
dx=1/n;
dy=1/m;
for it=1:imf_num
IMF=sift_bicubic(errmax,imax,dx,dy,A);
figure(it+5)
imagesc(IMF);
colormap(gray);
A=A-IMF;
IMF_all(:,:,it)=IMF;
end
IMF_all(:,:,it+1)=A;
figure(30)
imagesc(A);
colormap(gray); |
|