Intermediate Topic 33 of 49 Graphics, Vision & Media
Image Filtering
Convolving images for blur and sharpen effects.
How it works
Image filtering modifies pixels using their neighbors. Linear filters apply a convolution kernel: a box or Gaussian blur smooths and reduces noise, sharpening kernels enhance edges, and separable kernels cut the cost from O(k squared) to O(k) per pixel. Nonlinear filters include the median filter, which removes salt-and-pepper noise while preserving edges, and the bilateral filter, which smooths while respecting edges. Filtering can also be done in the frequency domain with the Fourier transform. Border handling options include zero padding, replication and reflection.
Where it is used
Noise reduction, blurring for depth of field and privacy, sharpening, edge enhancement, preprocessing for vision algorithms and convolutional neural network layers use image filtering.
Common pitfall
Large kernels are expensive without separability or FFT. Blurring and sharpening amplify noise or halos if overdone. Edge pixels need explicit border treatment. Operating on gamma-encoded values gives incorrect blends, and integer overflow in 8-bit images needs clamping. Choose kernel size relative to the feature scale and test on different images.
Where it fits in the course
Image Filtering is topic 33 of 49 in Graphics, Vision & Media, rated Intermediate. It follows Noise Functions. The next topic is Edge Detection.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Graphics, Vision & Media quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Graphics, Vision & Media quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Image Filtering?
Where do people use Image Filtering?
What is the most common mistake with Image Filtering?
What should I learn before this topic?
How can I practice it?
Is Image Filtering hard to learn?
How long does it take to learn Image Filtering?
Which topics are related to Image Filtering?
What should I study after Image Filtering?
Related topics
- Noise Functions (Graphics, Vision & Media)
- Edge Detection (Graphics, Vision & Media)
- Procedural Generation (Graphics, Vision & Media)
- Histogram Equalization (Graphics, Vision & Media)
- WHERE and Filtering (Databases)