Gradients on grids of pixels/voxels – forward, central, and diagonal differences | Hacker News Reader