Low-pass, high-pass, and convolution - shaping signals
Bass boost, noise reduction, and photo sharpening all work the same way: turn some frequencies up, turn others down. Open a drawer to see how.
Filtering is the process of selectively removing or enhancing certain frequencies in a signal. Thanks to the convolution theorem, filtering becomes simple multiplication in the frequency domain.
This is the technology behind bass boost, treble adjustment, noise reduction, and countless other audio and image processing techniques.
Low-Pass Filter: Passes low frequencies, blocks high frequencies. Like bass boost or a muffled sound through a wall. Blurs images, smooths signals
High-Pass Filter: Passes high frequencies, blocks low frequencies. Like removing bass rumble or background noise. Sharpens images, enhances edges
Band-Pass Filter: Passes only a specific range of frequencies. Used in radio tuning and isolating specific sounds. Radio tuning, voice isolation
Notch Filter: Removes a specific frequency while passing all others. Used to eliminate 60Hz hum or other interference. Removes power line hum, feedback
The key insight that makes filtering efficient:
Convolution in time/space domain (*) equals pointwise multiplication (×) in frequency domain.
Instead of sliding a filter kernel across every point (O(n²)), we can:
This runs in O(n log n) - a massive speedup for large signals!
Each filter has a frequency response that shows how it affects each frequency. Key terms:
Audio Equalizers: Boost or cut specific frequency bands to shape the sound.
Image Sharpening: High-pass filters enhance edges by emphasizing high-frequency details.
Noise Reduction: Identify and remove noise frequencies while preserving signal.
Spot a mistake or have an idea?