Image Gradients and Discrete Derivatives
Approximate spatial derivatives from samples and interpret the gradient’s direction relative to local level lines.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Differences approximate a derivative at a known spacing
For horizontal samples separated by \(h\), use \((I(x+h)-I(x-h))/(2h)\) for a central difference. On a linear ramp this gives its exact slope away from boundaries. On a noisy image, differencing can amplify rapid changes that are not stable edges. Smoothing first changes which spatial scales contribute. Units matter if horizontal and vertical sample spacing differ.
The gradient points across an intensity contour
In a differentiable model, moving tangent to a constant-intensity curve gives zero directional derivative, so the gradient is perpendicular to that tangent where nonzero. Its norm describes local contrast per unit distance. Thresholds should reflect scale and noise. Edge suppression uses the gradient direction to thin a response. Corner detection summarizes gradients in more than one direction over a patch.[1][2]