doog1.m

来自「很好的图像分割软件」· M 代码 · 共 31 行

M
31
字号
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 + =
减小字号Ctrl + -
显示快捷键?