Nima Kalantari
CSCE 448/748 – Computational Photography
Pyramids
Many slides from Alexei A. Efros, James Hayes, Rob Fergus
Fourier domain
Tells you what is in the image….
… but not where it is
………
………
Spatial Domain
…………..
Tells you where things are….
… but no concept of what it is
Image Analysis
Practical uses
Outline
Gaussian Pyramid
Image half-sizing
Image sub-sampling
1/4
1/8
Slide by Steve Seitz
1/2
Extreme example
Aliasing
Gaussian (lowpass) pre-filtering
1/4
1/8
1/2
Slide by Steve Seitz
Direct subsampling
1/4
1/8
1/2
Slide by Steve Seitz
Extreme case
Gaussian pyramid
A Multiresolution Spline with Application to Image Mosaics, Burt and Adelson, SIGGRAPH 83
Gaussian pyramid construction
filter mask
Slide by Steve Seitz
Gaussian pyramid construction
filter mask
Slide by Steve Seitz
Gaussian pyramid
Figure from David Forsyth
What are they good for?
Outline
Laplacian pyramid algorithm
L1
L2
L3
L4 = G4
Collapsing the pyramid
L1
L2
L3
L4 = G4
+
+
+
Outline
Image Blending
Feathering
0
1
0
1
+
=
Iblend = αIleft + (1-α)Iright
Affect of Window Size
0
1
left
right
0
1
Affect of Window Size
0
1
0
1
Good Window Size
0
1
“Optimal” Window: smooth but not ghosted
However…
Small window
Large window
Pyramid Blending
0
1
0
1
0
1
Left pyramid
Right pyramid
blend
Pyramid Blending
A Multiresolution Spline with Application to Image Mosaics, Burt and Adelson, SIGGRAPH 83
laplacian
level
4
laplacian
level
2
laplacian
level
0
left pyramid
right pyramid
blended pyramid
Pyramid Blending
A Multiresolution Spline with Application to Image Mosaics, Burt and Adelson, SIGGRAPH 83
Blending Regions
X
Y
A
blended
Laplacian Pyramid/Stack Blending
Laplacian Pyramid/Stack Blending
Laplacian LX
Laplacian LY
Gaussian GA
Blended
Collapse
Horror Photo
© david dmartin (Boston College)
Simplification: Two-band Blending
2-band “Laplacian Stack” Blending
Low frequency (λ > 2 pixels)
High frequency (λ < 2 pixels)
Linear Blending
2-band Blending