Start » Filter Reference » OpenCV » Image Filtering » cvLaplacian

cvLaplacian


Module: OpenCV

Calculates the Laplacian of an image.

Name Type Range Description
Input value
inSrc Image Source image.
Input value
inDDepth Integer* Desired depth of destination image. The NIL value means that it has the same depth as source image.
Input value
inKSize Integer 1 - 31 Aperture size used to compute the second-derivative filters. The size must be positive and odd.
Input value
inScale Real Scale factor for the computed Laplacian values.
Input value
inDelta Real Delta value that is added to the results prior to storing them.
Input value
inBorderType CvBorderType Pixel extrapolation method.
Output value
outDst Image Output image.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError inKSize must be odd and not larger than 31 in cvLaplacian.
DomainError Input image must not be empty in cvLaplacian.
DomainError Type of pixel of input image must be float or UINT8 in cvLaplacian.

Complexity Level

This filter is available on Basic Complexity Level.