/Laplace

Primary LanguageSwift

∇·∇

In math, the Laplacian operator is the divergence of the gradiant. Its use appears in various applications of math and science. One very non scientific use is in image precessing where the Laplacian pulls out areas of sharp contrast. In other words, this operator returns the edges of an image. The Laplacian wikipedia page provides more info.

The typical Laplacian in image processing is a kernel of the form:

|  0  1  0  |
|  1 -4  1  |
|  0  1  0  |

This project implements a modification to the typical kernel Laplacian which pulls out more edges:

|  1   2  1  |
|  2 -12  2  |
|  1   2  1  |