
263Image Enhancement in the Spatial Domain
This subtracts the brightness values of each of the eight neighboring pixels from eight times
the central pixel. Consequently, in a region of the image that is uniform in brightness or has a
uniform gradient of brightness, the result of applying this kernel is to reduce the value to zero.
When a variation is present within the neighborhood in the form of a point, line, or edge, the
result of the Laplacian is a nonzero value. It may be either positive or negative, depending on
where the central pixel lies with respect to an edge, point, etc.
In order to display the result when both positive and negative ...