高斯拉普拉斯算子(Laplacian of Gaussian,LoG)
高斯拉普拉斯算子(Laplacian of Gaussian,LoG)提取图像
f(x,y)边缘:
- 图像平滑去噪,高斯低通滤波器(a convolution with a Gaussian kernel of width
σ)
Gσ(x,y)=2π
σ1exp(−2σ2x2+y2)
- 边缘检测,拉普拉斯算子(Laplace operator)
△(Gσ(x,y)∗f(x,y))=(△Gσ(x,y))∗f(x,y)=LoG∗f(x,y)
■■
卷积性质:
dtd(h(t)∗f(t))=dtd∫f(τ)h(t−τ)dτ=∫f(τ)dtdh(t−τ)dτ=f(t)∗dtdh(t)
■
高斯拉普拉斯算子
△Gσ(x,y):
∂x2∂2Gσ(x,y)=2π
σ1σ4x2−σ2exp(−2σ2x2+y2)
∂y2∂2Gσ(x,y)=2π
σ1σ4y2−σ2exp(−2σ2x2+y2)
■■
∂x∂Gσ(x,y)=2π
σ1∂x∂exp(−2σ2x2+y2)=−2π
σ3xexp(−2σ2x2+y2)
∂x2∂2Gσ(x,y)=−2π
σ31exp(−2σ2x2+y2)+2π
σ5x2exp(−2σ2x2+y2)=2π
σ1σ4x2−σ2exp(−2σ2x2+y2)
■
LoG定义为:
LoG≜∂x2∂2Gσ(x,y)+∂y2∂2Gσ(x,y)=2π
σ1σ4x2+y2−2σ2exp(−2σ2x2+y2)
二维
5×5
LoG算子:
⎣⎢⎢⎢⎢⎡001000121012−16210121000100⎦⎥⎥⎥⎥⎤
核矩阵各元素之和必须为零(make sure that the sum (or average) of all elements of the kernel has to be zero)。
边缘检测步骤:
-
LoG滤波(applying LoG to the image)
-
过零检测(detection of zero-crossings in the image)
-
门限判决(threshold the zero-crossings to keep only those strong ones (large difference between the positive maximum and the negative minimum))