Perform a
[convolution](https://en.wikipedia.org/wiki/Kernel_(image_processing)
using a sharpening kernel where the center weight (5
) is the origin:
[
[0, -1, 0],
[-1, 5, -1],
[0, -1, 0]
]
A convolution is performed by moving the kernel origin to each pixel of the base image, multiplying the each value of the kernel by its base image value relative to the origin, and summing the products to get the new value for that pixel.
Another familiar convolution is Gaussian blur.