Imaging & vision
An image is a signal, not a picture
Once you call it a signal, filters, resampling and compression all become the same subject.
The single most useful reframing in this whole field: a photograph is a 2-D signal — a function of two spatial variables that happens to be sampled on a grid. The moment you accept that, tools you already know from audio transfer over intact.
The transfer table is almost embarrassing in how well it holds:
· Convolution — same operation, two dimensions instead of one.
· Frequency / spectrum — same. A photo has spatial frequencies; sharp edges and fine textures contain high frequencies.
· Low-pass filter — blur.
· High-pass filter — edge emphasis.
· High-frequency emphasis — many sharpening filters add a high-pass detail signal back to the image; they cannot restore detail that was never captured.
· Sampling theory — the Nyquist limit applies in each image axis, and aliasing is the same disease.
# 2-D convolution — the engine behind nearly every classic filter
def convolve(img, k):
kh, kw = k.shape
ph, pw = kh // 2, kw // 2
pad = np.pad(img, ((ph, ph), (pw, pw)), mode='edge')
out = np.zeros_like(img, dtype=float)
for y in range(img.shape[0]):
for x in range(img.shape[1]):
out[y, x] = (pad[y:y+kh, x:x+kw] * k).sum()
return out
# The kernel IS the filter. Examples:
# box 3x3 -> blur
# gaussian -> nicer blur (no ringing)
# [-1,0,1] -> horizontal derivative (responds to vertical edges)
# laplacian -> edges in all directionsAnd aliasing is not an abstract worry — it is the moiré on a striped shirt, the shimmer on a receding fence, the jaggies on a thin line. All three are the same thing: image detail above the sampling grid's Nyquist limit folding into false lower-frequency patterns.
What is a low-pass filter in image terms?
What is aliasing?
Image as signal
A 2-D function sampled on a grid; audio tools transfer directly.
Convolution
Slide a kernel over the image; the kernel IS the filter.
Separable kernel
A 2-D Gaussian = two 1-D passes — the trick behind fast blurs.
Review cards
Image as signal
A 2-D function sampled on a grid; audio tools transfer directly.
Convolution
Slide a kernel over the image; the kernel IS the filter.
Separable kernel
A 2-D Gaussian = two 1-D passes — the trick behind fast blurs.
Sources for this lesson
Below are the references, editions and original links for further reading and checking.
BookComputer Vision: Algorithms and Applicationsfree
Richard Szeliski
2nd edition, Springer 2022(初稿 2020 起公开征求勘误)
一本书覆盖图像处理到三维重建。第 2 版把深度学习独立成章(第 5 章)。作者官网提供免费 PDF,2026 年秋季多所高校课程仍在用它。
Rafael C. Gonzalez, Richard E. Woods
4th edition, Pearson(40 周年纪念版)
传统图像处理的圣经。第 4 版扩写了深度学习、CNN、SIFT、MSER、图割、超像素、活动轮廓等,并重组了图像变换一章。
CourseImage Sampling and Aliasingfree
Foundations of Computer Vision, MIT
Online textbook, chapter 20
Covers the Nyquist limit, spatial sampling, aliasing, and prefiltering before downsampling.
Lights up these nodes in the hub:i-01 · i-02