MATLAB File Help: cv.Laplacian Index
cv.Laplacian

Calculates the Laplacian of an image

dst = cv.Laplacian(src)
dst = cv.Laplacian(..., 'OptionName', optionValue, ...)

Input

Output

Options

The function calculates the Laplacian of the source image by adding up the second x and y derivatives calculated using the Sobel operator:

dst = \Delta src = d^2(src)/dx^2 + d^2(src)/dy^2

This is done when KSize > 1. When KSize = 1, the Laplacian is computed by filtering the image with the following 3x3 aperture:

[0, 1, 0; 1,-4, 1; 0, 1, 0]
See also