Image kernels#

class Kernel(K, name=None)[source]#
__init__(K, name=None)[source]#

Convolution kernel object

Parameters:
  • K (ndarray(N,M)) – kernel weighting matrix

  • name (str, optional) – name of the kernel, defaults to None

Raises:

ValueErrorK is not a 2D ndarray

Kernel objects are used to represent convolution kernels for image processing operations. They are created by a number of class methods that generate common kernels such as Gaussian, Laplacian, etc.

ImageCore.Image machinevisiontoolbox.ImageCore.Image machinevisiontoolbox.Image

Seealso:

Gauss Laplace Sobel DoG LoG DGauss Circle Box

Kernel

Gauss

Gaussian kernel

Laplace

Laplacian kernel

Sobel

Sobel edge detector

DoG

Difference of Gaussians kernel

LoG

Laplacian of Gaussian kernel

DGauss

Derivative of Gaussian kernel

HGauss

Hessian of Gaussian kernel

Circle

Circular structuring element

Box

Square structuring element