Next: Compass Gradient Operations
Up: gradient
Previous: The Gradient Operator
For discrete digital images, the derivative in gradient operation
becomes difference
Two steps for finding discrete gradient of a digital image:
- Find the difference:
in the two directions:
- Find the magnitude and direction of the gradient vector:
The differences in two directions
and
can be obtained by
convolution with the following kernels:
- Roberts
or
- Prewitt (3x3)
- Sobel
- Prewitt (4x4)
Note the Prewitt and Sobel operators first find the averages of one direction
and then find the difference of these averages in the another direction.
Next: Compass Gradient Operations
Up: gradient
Previous: The Gradient Operator
Ruye Wang
2009-09-20