The Laplace and Canny transforms

Another quite useful operator to find edges is the Laplacian transformation. Instead of relying on the first order derivatives, OpenCV's Laplacian transformation implements the discrete operator for the following function:

The Laplace and Canny transforms

The matrix can be approximated to the convolution with the following kernel when using finite difference methods and a 3x3 aperture:

The Laplace and Canny transforms

The signature for the preceding function is as follows:

Laplacian(Mat source, Mat destination, int ddepth)

While source and destination matrices are simple parameters, ...

Get OpenCV 3.0 Computer Vision with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.