Kernel.Laplace#

classmethod Kernel.Laplace()[source]#

Laplacian kernel

Returns:

3 x 3 Laplacian kernel

Return type:

Kernel

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
>>> K = Kernel.Laplace()
>>> K
Kernel: 3x3, min=-4, max=1, mean=0, SYMMETRIC (Laplacian)
>>> K.print()
  0.00  1.00  0.00
  1.00 -4.00  1.00
  0.00  1.00  0.00

Note

  • This kernel has an isotropic response to image gradient.

References:
Seealso:

LoG zerocross