Sharpening algorithms like Laplacian mask compute double derivatives of the image gradients along x and y directions. The unsharp mask first calculates a blurred version using a Gaussian filter and then subtracts the blurred image from the original image to enhance the edges.