⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doog1.m

📁 this program is to layer the given image by natural cutting developed by using c
💻 M
字号:
function H=doog1(sig,r,th,N);% H=doog1(sig,r,th,N);% Serge Belongieno_pts=N;  % no. of points in x,y grid[x,y]=meshgrid(-(N/2)+1/2:(N/2)-1/2,-(N/2)+1/2:(N/2)-1/2);phi=pi*th/180;sigy=sig;sigx=r*sig;R=[cos(phi) -sin(phi); sin(phi) cos(phi)];C=R*diag([sigx,sigy])*R';X=[x(:) y(:)];Gb=gaussian(X,[0 0]',C);Gb=reshape(Gb,N,N);m=R*[0 sig]';a=1;b=-1;% make odd-symmetric filterGa=gaussian(X,m/2,C);Ga=reshape(Ga,N,N);Gb=rot90(Ga,2);H=a*Ga+b*Gb; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -