next up previous
Next: Compass Gradient Operations Up: gradient Previous: The Gradient Operator

Digital Gradient

For discrete digital images, the derivative in gradient operation

\begin{displaymath}D_x[f(x)]=\frac{d}{dx}f(x)=\lim_{\Delta x \rightarrow 0}
\frac{f(x+\Delta x)-f(x)}{\Delta x} \end{displaymath}

becomes the difference

\begin{displaymath}D_n[f[n]]=f[n+1]-f[n],\;\;\;\;\mbox{or}\;\;\;\;\frac{f[n+1]-f[n-1]}{2} \end{displaymath}

Two steps for finding discrete gradient of a digital image:

The differences in two directions $g_m$ and $g_n$ can be obtained by convolution with the following kernels:

Note Sobel and Prewitt operators first find the averages of one direction and then find the difference of these averages in the another direction.


next up previous
Next: Compass Gradient Operations Up: gradient Previous: The Gradient Operator
Ruye Wang 2016-10-18