machinevisiontoolbox.ImageSpatial.Kernel.Laplace

static Kernel.Laplace()[source]

Laplacian kernel

Returns:

Laplacian kernel

Return type:

ndarray(3,3)

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()
array([[ 0,  1,  0],
       [ 1, -4,  1],
       [ 0,  1,  0]])
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