Free tools & games for everyone
Free · No sign-up · No accounts
See how image filters and edge detection work: try blur, sharpen and Sobel kernels or your own, inspect the sum at any pixel, and step through Canny.
Tap the picture to see the maths at one pixel.
| Tab | Move between kernel cells, lists and sliders |
|---|---|
| ← → on a slider | Change blur or thresholds |
| Tap the picture | Inspect one pixel |
A convolution kernel is a small grid of weights. For every pixel, the lab multiplies the pixel and its neighbours by the weights, adds them up, divides and adds an offset; pixels at the border reuse the nearest edge pixel. The Gaussian kernels use binomial weights that approximate a bell curve.
The Canny edge detector (John Canny, 1986) turns the picture grey, smooths it with a Gaussian blur, measures the brightness slope with the Sobel kernels, keeps only the peak of each slope across the edge (non-maximum suppression), and finally keeps strong edges plus any weaker edge pixels connected to them (hysteresis). Pictures are worked on at up to 560 pixels across. Everything runs in your browser.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product