Difference of Gaussian (DoG)

Similar to Laplace of Gaussian, the image is first smoothed by convolution with Gaussian kernel of certain width $/sigma_1$ 

 

/begin{displaymath}G_{/sigma_1}(x,y)=/frac{1}{/sqrt{2/pi /sigma_1^2}}exp[-/frac{x^2+y^2}{2/sigma_1^2}] /end{displaymath}

 

to get 

 

/begin{displaymath}g_1(x,y)=G_{/sigma_1}(x,y)*f(x,y) /end{displaymath}

 

With a different width  $/sigma_2$, a second smoothed image can be obtained: 

 

/begin{displaymath}g_2(x,y)=G_{/sigma_2}(x,y)*f(x,y) /end{displaymath}

 

We can show that the difference of these two Gaussian smoothed images, called  difference of Gaussian (DoG), can be used to detect edges in the image. 

 

/begin{displaymath}g_1(x,y)-g_2(x,y)=G_{/sigma_1}*f(x,y)-G_{/sigma_2}*f(x,y)
=(G_{/sigma_1}-G_{/sigma_2})*f(x,y)=DoG*f(x,y)
/end{displaymath}

 

The DoG as an operator or convolution kernel is defined as 

 

/begin{displaymath}DoG /stackrel{/triangle}{=}G_{/sigma_1}-G_{/sigma_2}=/frac{1}...
...)/2/sigma_1^2}-
/frac{1}{/sigma_2}e^{-(x^2+y^2)/2/sigma_2^2}]
/end{displaymath}

 

Both 1D and 2D functions of  $G_{/sigma_1}(x,y)$ and  $G_{/sigma_2}(x,y)$ and their difference are shown below:

DoG.gif

DoG_plot.gif

The discrete convolution kernel for DoG can be obtained by approximating the continuous expression of DoG given above. Again, it is necessary for the sum or average of all elements of the kernel matrix to be zero.

Comparing this plot with the previous one, we see that the DoG curve is very similar to the LoG curve. Also, similar to the case of LoG, the edges in the image can be obtained by these steps:

  • Applying DoG 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)
The last step is needed to suppress the weak zero-crossings most likely caused by noise.

Edge detection by DoG operator:

forest_dog.gif

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值