mexhat.m

来自「这是<<Matlab在图像处理中的应用>>这本书的源码」· M 代码 · 共 16 行

M
16
字号
// 程序13-2
function [r, c] = Mexhat(A)
s = 3.0;
W = 4.0;
x = [- s*W : 1 : s*W];
D=double(A);
n = length(x);
h1 = fspecial1('log',115,3);
B1 = filter2(h1,A);
h2 = fspecial1('log',115,4);
B2 = filter2(h2,A);
B=abs(B1-(power(2,4))*B2);%B=B2-1/4*B1;1/4
radius=45;
thresh=100;
[r,c] = nonmaxsuppts(B, radius, thresh, D);		

⌨️ 快捷键说明

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