Learning Rooms/○ Level 3 · Innovator/Perception and signals
How Blurs & Filters Work - Computerphile
Computerphile · Length: see YouTube · captions on YouTube · nothing loads until you press play
By the end you can…
- Apply a 3×3 kernel to a pixel neighbourhood by multiplying matching positions and adding.
- Explain the box blur as a 2D moving average, and what sharpening kernels do.
- Handle image edges and value ranges sensibly.
Watch it all: no segment has been checked by hand for this video yet.
1.Predict before you press play
A box blur (nine weights of 1/9) is applied to a single bright pixel of 90 surrounded by zeros. What is the output at that pixel?
Pick one before you press play. A wrong guess is fine: it is what makes the video stick.
2.See the idea first
Play with this diagram for a minute. It gives you something to hang the video on.
Loading the interactive…
Can't use the diagram? Read a description instead
In kernel mode the diagram shows the input grid and the filtered grid. Clicking a pixel lists the nine weight × value products and their sum. On the Noisy bar, the box blur evens out the random variation and spreads the bright bright speck into a dimmer 3 × 3 patch; sharpening the Bright square makes its edge pixels brighter and the surrounding background darker.
3.Watch, actively
Walks a small kernel across an image to blur it, the same multiply-and-add you do by hand in the kernel lessons.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
Watch for…
- → Watch for the kernel being slid across the image one pixel at a time, and for the difference between a mean blur and a Gaussian blur's weights.
Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.
Can't stream it? Read the idea instead
A blur slides a small grid of weights, a kernel, across an image and replaces each pixel with the weighted sum of its neighbourhood. Equal weights give a mean blur; weights that fall off from the centre give a smoother Gaussian blur.
What the video covers (our own note, written when we verified it): Walks a small kernel across an image to blur it, the same multiply-and-add you do by hand in the kernel lessons.
Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.
Jot down one thing that surprised you and one question you still have.
4.Practise what you just saw
These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.
Practice 1 · a fresh version every time
Apply the box blur (all nine weights 1/9) kernel to the centre pixel of this 3×3 patch by multiplying matching positions and adding. Patch rows: [210, 50, 40] [210, 230, 0] [250, 10, 70]. What is the output value?
Practice 2 · a fresh version every time
Apply the sharpen [[0,−1,0],[−1,5,−1],[0,−1,0]] kernel to the centre pixel of this 3×3 patch by multiplying matching positions and adding. Patch rows: [130, 150, 140] [110, 40, 10] [180, 250, 170]. What is the output value?
Practice 3
A kernel's weights add up to 2. Applied to a flat grey region of 100, what does it output?
Practice 4
Why write filter results into a new image rather than overwriting the input as you go?
5.Try it yourself
No simulation models this idea yet. The lesson below has an interactive diagram instead.
6.Build something with it
Follow-up project
Write apply_kernel(img, k) in Python with nested loops and nearest-pixel edges. Test it against two hand-worked patches, then blur a noisy test image and measure how much the standard deviation of a flat region falls.
Where this video lives
- Kernels: the moving average goes 2D · Level 3, week 25
In the course catalogue: AIP-320 Computer vision foundations
The video is by Computerphile, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.