
278 The Image Processing Handbook, Seventh Edition
orthogonal vectors, one in the horizontal and one in the vertical direction, to get the length of
the vector that represents the local gradient of the brightness change.
Magnitude =
°
°
+
°
°
B
x
B
y
2
2
(5.9)
This is the Sobel (1970) gradient operator, one of the most commonly used techniques for
highlighting edges. Figure5.38 shows the directional derivatives and their combination.
As for the Roberts cross, some early computer programs attempted to compensate for hard-
ware limitations by adding or comparing the two values, instead of squaring, adding, and
taking the square root. The Kirsch ...