In
imaging science,
difference of Gaussians is a
feature enhancement algorithm that involves the subtraction of one blurred version of an original image from another, less blurred version of the original. In the simple case of
grayscale images, the blurred images are obtained by
convolving the original
grayscale images with Gaussian kernels having differing standard deviations. Blurring an image using a
Gaussian kernel suppresses only
high-frequency spatial information. Subtracting one image from the other preserves spatial information that lies between the range of frequencies that are preserved in the two blurred images. Thus, the difference of Gaussians is a
band-pass filter that discards all but a handful of spatial frequencies that are present in the original grayscale image.