Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Vision Spring 2006 15-385,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.

Similar presentations


Presentation on theme: "Computer Vision Spring 2006 15-385,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm."— Presentation transcript:

1 Computer Vision Spring 2006 15-385,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm

2 Image Resampling and Pyramids Lecture #8

3 RECAP - Sampling Theorem Continuous signal: Shah function (Impulse train): Sampled function:

4 RECAP - Sampling Theorem Sampled function: Only if Sampling frequency

5 RECAP - Nyquist Theorem If Aliasing When can we recover from ? Only if (Nyquist Frequency) We can use Thenand Sampling frequency must be greater than

6 Aliasing

7 Image Scaling This image is too big to fit on the screen. How can we reduce it? How to generate a half- sized version?

8 Image Sub-Sampling Throw away every other row and column to create a 1/2 size image - called image sub-sampling 1/4 1/8

9 Image Sub-Sampling 1/4 (2x zoom) 1/8 (4x zoom) 1/2

10 Good and Bad Sampling Good sampling: Sample often or, Sample wisely Bad sampling: see aliasing in action!

11 Sub-Sampling with Gaussian Pre-Filtering G 1/4 G 1/8 Gaussian 1/2 Solution: filter the image, then subsample –Filter size should double for each ½ size reduction. Why?

12 G 1/4G 1/8Gaussian 1/2 Sub-Sampling with Gaussian Pre-Filtering

13 Compare with... 1/4 (2x zoom) 1/8 (4x zoom) 1/2

14 Image Resampling What about arbitrary scale reduction? How can we increase the size of the image? Recall how a digital image is formed –It is a discrete point-sampling of a continuous function –If we could somehow reconstruct the original function, any new image could be generated, at any resolution and scale 12345

15 Image Resampling So what to do if we don’t know 123452.5 1 –Answer: guess an approximation –Can be done in a principled way: filtering Image reconstruction –Convert to a continuous function –Reconstruct by cross-correlation:

16 Resampling filters What does the 2D version of this hat function look like? Better filters give better resampled images –Bicubic is common choice performs linear interpolation performs bilinear interpolation

17 Bilinear interpolation A common method for resampling images

18 Image Rotation

19 Multi-Resolution Image Representation Fourier domain tells us “what” (frequencies, sharpness, texture properties), but not “where”. Spatial domain tells us “where” (pixel location) but not “what”. We want a image representation that gives a local description of image “events” – what is happening where. Naturally, think about representing images across varying scales.

20 Multi-resolution Image Pyramids High resolution Low resolution

21 Space Required for Pyramids

22

23 Constructing a pyramid by taking every second pixel leads to layers that badly misrepresent the top layer

24 Even worse for synthetic images

25 Decimation

26 Expansion

27 Interpolation Results

28 The Gaussian Pyramid Smooth with Gaussians because –a Gaussian*Gaussian=another Gaussian Synthesis –smooth and downsample Gaussians are low pass filters, so repetition is redundant Kernel width doubles with each level

29 Smoothing as low-pass filtering High frequencies lead to trouble with sampling. Suppress high frequencies before sampling ! –truncate high frequencies in FT –or convolve with a low-pass filter Common solution: use a Gaussian –multiplying FT by Gaussian is equivalent to convolving image with Gaussian.

30 The Gaussian Pyramid High resolution Low resolution blur down-sample blur down-sample

31

32

33 Pyramids at Same Resolution

34 Difference of Gaussians (DoG) Laplacian of Gaussian can be approximated by the difference between two different Gaussians

35 Gaussian – Image filter Gaussian delta function Fourier Transform

36 expand Gaussian Pyramid Laplacian Pyramid The Laplacian Pyramid - = - = - =

37

38 Applications of Image Pyramids Coarse-to-Fine strategies for computational efficiency. Search for correspondence –look at coarse scales, then refine with finer scales Edge tracking –a “good” edge at a fine scale has parents at a coarser scale Control of detail and computational cost in matching –e.g. finding stripes –very important in texture representation Image Blending and Mosaicing Data compression (laplacian pyramid)

39 Edge Detection using Pyramids Coarse-to-fine strategy: Do edge detection at higher level. Consider edges of finer scales only near the edges of higher scales.

40 Fast Template Matching

41

42

43

44

45

46

47 Image Blending and Mosaicing

48 Blending Apples and Oranges

49 Pyramid blending of Regions

50 Horror Photo © prof. dmartin

51 Image Fusion Multi-scale Transform (MST) = Obtain Pyramid from Image Inverse Multi-scale Transform (IMST) = Obtain Image from Pyramid

52 Multi-Sensor Fusion

53 Image Compression

54 Next Class Hough Transform


Download ppt "Computer Vision Spring 2006 15-385,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm."

Similar presentations


Ads by Google