Laplacian算子

多元函数的二阶导数又称为Laplacian算子:
\[ \triangledown f(x, y) = \frac {\partial^2 f}{\partial x^2} + \frac {\partial^2 f}{\partial y^2} \]
对于图像上的离散\(f(x, y)\):
\[ \triangledown f(x, y) = f(x + 1, y) + f(x - 1,y) - 2 f(x,y) + f(x, y + 1) + f(x, y -1) - 2 f(x, y) \\= f(x + 1, y) + f(x - 1,y) + f(x, y + 1) + f(x, y -1) - 4 f(x, y) \]
它对应的3阶mask为:
\[ \left [ \begin{matrix} 0 & 1 & 0\\ 1 & -4 & 1\\ 0 & 1 & 0 \end{matrix} \right ] \]

若考虑两个对角线方向的偏导数, 则为:
\[ \left [ \begin{matrix} 1 & 1 & 1\\ 1 & -8 & 1\\ 1 & 1 & 1 \end{matrix} \right ] \]

应用

孤立点检测(Isolated Point Detection)

之前所说, 二阶mask对细节更敏感, 所以Laplacian算子的一个常见应用是孤立点检测.
chapter10_4.png?raw=true

线条检测(Line detection)

一个像素宽的是线条, 两个像素宽的是线条, 三个, 四个, ..., \(n\)个呢? 所以先得区分线条和region. 不比mask宽的才是线条, 比mask宽的就是region了. (DIP 10.2.3).
用于line detection的mask可以是方向不特异的(检测所有方向的线条, 如上面已列出的.), 也可以方向特异的(只检测某个方向的线条). 这种检测还是有thresholding过程: response大于threshold的才认为是属于检测目标的像素点.
chapter10_6.png?raw=true

应用\(+45^\circ\)的mask:
chapter10_7.png?raw=true

转载于:https://www.cnblogs.com/dengdan890730/p/6145709.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值