machinevisiontoolbox.ImageSpatial.Kernel.Laplace
- classmethod Kernel.Laplace()[source]
Laplacian kernel
- Returns:
3 x 3 Laplacian kernel
- Return type:
Return the Laplacian kernel
\[\begin{split}\mathbf{K} = \begin{bmatrix} 0 & 1 & 0 \\ 1 & -4 & 1 \\ 0 & 1 & 0 \end{bmatrix}\end{split}\]Example:
>>> from machinevisiontoolbox import Kernel >>> Kernel.Laplace() <machinevisiontoolbox.ImageSpatial.Kernel object at 0x7fec22f552b0>
- Note:
This kernel has an isotropic response to image gradient.
- References:
Robotics, Vision & Control for Python, Section 11.5.1.3, P. Corke, Springer 2023.
- Seealso:
LoG
zerocross