sampling theorm image processing in signal processing
sampling theorm image processing in signal processing
and rescaling
Fourier transforms
Fourier Fourier
Image Image
transform transform
Low-pass filtering
* Fourier
=
Fourier
* =
High-pass filtering
- =
- =
Band-pass filtering
- =
- =
- =
Hybrid images (PA1)
Hybrid images (PA1)
Hybrid images (PA1)
Resizing and
resampling
Let’s enhance!
Source: S. Seitz
Image sub-sampling
1/16
1/4
Source: F. Durand
Point sampling
in action
*
Recap: subsampling and
reconstruction
Subsampling Reconstruction
1. Convolve with sinc 1. Start with sampled
filter to eliminate signal (0 at non-
high frequencies sample points)
2. Sample by picking 2. Convolve with sinc to
only values at sample reconstruct
points
Sinc is annoying
Sinc and Gaussian
• Sinc is annoying: infinite spatial extent
• Use Gaussian instead!
Sinc/box
Gaussian
Spatial domain Frequency domain
Subsampling images
• Step 1: Convolve with Gaussian to eliminate high
frequencies
• Step 2: Drop unneeded pixels
G 1/8
G 1/4
Gaussian 1/2
Source: S. Seitz
Upsampling images
Step 1: blow up to
original size with 0’s
in between
Upsampling images
F0 F1 F2
blur
F0
subsample blur
F1
subsample
F2
…
F0 * H F1 * H
Gaussian pyramids
[Burt and Adelson, 1983]
High resolution
Gaussian pyramid and stack
Source: Forsyth
Memory Usage
• What is the size of the pyramid?
5
4
Laplacian pyramid
Expand (up
s ample + bl
ur)
Expand (up
s - ample + bl
ur)
=
Expand (up- =
s am p le + blur)
Re-
duce - =
Expand (up
s ample + bl
ur)
- =
Laplacian pyramid
L 4 = G4 =
L3 = G3 - expand(G4) =
L2 = G2 - expand(G3) =
L1 = G1 - expand(G2) =
L0 = G0 - expand(G1) =
Reconstructing the image
from a Laplacian pyramid
lur)
(u p s a m p le + b
Expand
+ s a m
=p le + blur)
Expand (up
+ (u p
=
s a m p le + blur)
Exp an d
+ =
sample + blur)
Expand (up
+ =
Laplacian pyramid
Source: Forsyth