Image Resampling
Image Scaling
This image is too big to fit on the
screen. How can we generate a
half-sized version?
Source: S. Seitz
Image sub-sampling
1/8
1/4
Throw away every other row and
column to create a smaller size image
- called image sub-sampling
Source: S. Seitz
Gaussian pre-filtering
G 1/8
G 1/4
Gaussian 1/2
• Solution: filter the image, then subsample
Source: S. Seitz
Subsampling with Gaussian pre-filtering
Gaussian 1/2 G 1/4 G 1/8
• Solution: filter the image, then subsample
Source: S. Seitz
Compare with...
1/2 1/4 (2x zoom) 1/8 (4x zoom)
Source: S. Seitz
Gaussian
pre-filtering
• Solution: filter
the image, then
subsample
F0 F1 F2
blur subsample blur subsample …
F0 * H F1 * H
Gaussian
pyramid
F0 F1 F2
blur subsample blur subsample …
F0 * H F1 * H
Upsampling
• This image is too small for this screen:
• How can we make it 10 times as big?
• Simplest approach:
repeat each row
and column 10 times
• (“Nearest neighbor
interpolation”)