
273Image Enhancement in the Spatial Domain
image with digitized finite pixels, a continuous derivative is replaced by the difference value
between adjacent pixels, which is calculated as a finite derivative. This difference is often
noisy, but averaging in the direction perpendicular to the derivative can smooth the result, as
shown in the examples. Typical kernels used for a horizontal directional first derivative are
+
[]
+−
+−
+−
−1
10 1
22
10 1
10
10 1
20 2
20 2
10 1
0
As in the preceding chapter, the location of the pixel whose value is calculated is shown in
color. The difference between these three ...