As the opposite of smoothing operations, image sharpening has the goal to
enhance the details (the high spatial frequency components) of the image.
A high-pass filtered image can be obtained as the difference between the
original image and its low-pass filtered version. The original image can
be considered as all-pass filtered by a delta function kernel:
We can therefore get a high-pass filter kernel corresponding to each low-pass filter kernel by subtracting the low-pass kernel from the all-pass one:
Note that the sum of all elements of the resulting high-pass filter is always zero. When such a high-pass kernel is convolved with a region of an image where all pixels have same gray level (constant or DC component), the result is zero, i.e., the zero spatial frequency component is totally suppressed by the high-pass filter.
Similar band-pass filters can be obtained by finding the difference between two low-pass filters of different cut-off frequencies.
The following figure shows the original image, a panda (left), and its low-pass (middle) and high-pass (right) filtered versions.