Slide 1

Slide 1 text

Computer vision Image pyramids and multiscale representations (Week 2) NHSM - 4th year - Spring 2025 - Prof. Mohammed Hachama [email protected] http://hachama.github.io/home/

Slide 2

Slide 2 text

Outline Image pyramids and multiscale representations NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 2/8

Slide 3

Slide 3 text

Image pyramids and multiscale representations NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 3/8

Slide 4

Slide 4 text

Gaussian Scale-space Gaussian multiscale analysis • A continuous representation where an image is analyzed at different levels of blur (scale) L(x, y, σ) = I(x, y) ⋆ G(x, y, σ) NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 4/8

Slide 5

Slide 5 text

Gaussian Scale-space Gaussian multiscale analysis • A continuous representation where an image is analyzed at different levels of blur (scale) L(x, y, σ) = I(x, y) ⋆ G(x, y, σ) NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 4/8

Slide 6

Slide 6 text

Gaussian Scale-space Gaussian multiscale analysis • A continuous representation where an image is analyzed at different levels of blur (scale) L(x, y, σ) = I(x, y) ⋆ G(x, y, σ) NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 4/8

Slide 7

Slide 7 text

Gaussian Scale-space Gaussian multiscale analysis • A continuous representation where an image is analyzed at different levels of blur (scale) L(x, y, σ) = I(x, y) ⋆ G(x, y, σ) NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 4/8

Slide 8

Slide 8 text

Image Pyramids Image Pyramids • 1. Gaussian pyramid • 2. Laplacian pyramid • 3. Steerable Pyramid NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 5/8

Slide 9

Slide 9 text

Gaussian Pyramid Gaussian Pyramid NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 6/8

Slide 10

Slide 10 text

Gaussian Pyramid Gaussian Pyramid NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 6/8

Slide 11

Slide 11 text

Gaussian Pyramid Gaussian Pyramid • Gaussian filtering as anti-aliasing filters • Details get smoothed out as we move to higher levels • Only mostly large uniform regions in the original image are preserved at the higher levels • Image reconstruction from the pyramid: Not possible NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 6/8

Slide 12

Slide 12 text

Gaussian Pyramid Application 1: Template matching NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 6/8

Slide 13

Slide 13 text

Gaussian Pyramid Applications • Multi-Scale Image Representation and Analysis • Scale-Invariant Image Features • Image Compression (Progressive Encoding and transmission) • Efficient Image Processing (Reducing Computation) • Optical Flow and Motion Estimation: track motion from coarse to fine resolution. • Prevents large displacements from being missed when only analyzing the full-resolution image • Deep Learning NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 6/8

Slide 14

Slide 14 text

Laplacian Pyramid Laplacian Pyramid • Retain the residuals instead of the blurred images themselves NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 7/8

Slide 15

Slide 15 text

Laplacian Pyramid Laplacian ≈ difference-of-Gaussian (DOG) NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 7/8

Slide 16

Slide 16 text

Laplacian Pyramid Laplacian is a Bandpass Filter NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 7/8

Slide 17

Slide 17 text

Laplacian Pyramid Laplacian is a Bandpass Filter NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 7/8

Slide 18

Slide 18 text

Laplacian Pyramid Laplacian is a Bandpass Filter NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 7/8

Slide 19

Slide 19 text

Laplacian Pyramid Constructing a Laplacian Pyramid NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 7/8

Slide 20

Slide 20 text

Laplacian Pyramid Application 1: Image Blending • Blend two images smoothly by decomposing them into Gaussian and Laplacian pyramids, blending them at each level, and then reconstructing the final blended image. NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8

Slide 21

Slide 21 text

Laplacian Pyramid Application 1: Image Blending • Blend two images smoothly by decomposing them into Gaussian and Laplacian pyramids, blending them at each level, and then reconstructing the final blended image. NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8

Slide 22

Slide 22 text

Laplacian Pyramid Application 1: Image Blending • Blend two images smoothly by decomposing them into Gaussian and Laplacian pyramids, blending them at each level, and then reconstructing the final blended image. NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8

Slide 23

Slide 23 text

Laplacian Pyramid Application 1: Image Blending NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8

Slide 24

Slide 24 text

Laplacian Pyramid Application 1: Image Blending NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8

Slide 25

Slide 25 text

Laplacian Pyramid Application 1: Image Blending • When blending two images directly, sharp edges at the boundary can be noticeable. By blending low-frequency components smoothly and high-frequency details selectively, the transition between images becomes natural. • The blending mask is also pyramidal, meaning it changes smoothly across scales. This ensures that low-frequency components are blended over a larger region, while high-frequency details are only blended near the boundary. NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8

Slide 26

Slide 26 text

Laplacian Pyramid Application 1: Image Blending NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8

Slide 27

Slide 27 text

Laplacian Pyramid Application 2: Image compression • Quantize Laplacian coefficients to reduce precision (e.g., rounding to integers). • Higher levels (coarser details) tolerate aggressive quantization, while finer levels require finer quantization to preserve details. NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8

Slide 28

Slide 28 text

Laplacian Pyramid Application 2: Eulerian Video Magnification • Enhances small variations in color and motion • Pulse detection: monitoring tiny skin color changes due to blood flow • Breathing analysis: amplifying chest movements. • Material deformation detection: visualizing tiny vibrations in structures. NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8

Slide 29

Slide 29 text

Laplacian Pyramid Application 2: Eulerian Video Magnification • Laplacian pyramid to separate different frequency bands. • Pixel values are filtered over time to enhance (by a factor ×α) specific frequency ranges (e.g., heartbeats at 0.5–1.5 Hz). NHSM - 4th year: Computer vision - pyramids (Week 2) - M. Hachama ([email protected]) 8/8