1 / 50

Computer Vision

Computer Vision. Spring 2006 15-385,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm. Announcements. Homework 1 is due today in class. Homework 2 will be out later this evening (due in 2 weeks). Start homeworks early. Post questions on bboard.

baina
Download Presentation

Computer Vision

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. Announcements • Homework 1 is due today in class. • Homework 2 will be out later this evening (due in 2 weeks). • Start homeworks early. • Post questions on bboard.

  3. Image Processing and Filtering Lecture #5

  4. Image as a Function • We can think of an image as a function, f, • f:R2R • f (x, y)gives the intensity at position (x, y) • Realistically, we expect the image only to be defined over a rectangle, with a finite range: • f: [a,b]x[c,d]  [0,1] • A color image is just three functions pasted together. We can write this as a “vector-valued” function:

  5. Image as a Function

  6. Image Processing • Define a new image g in terms of an existing image f • We can transform either the domain or the range of f • Range transformation: What kinds of operations can this perform?

  7. Image Processing • Some operations preserve the range but change the domain of f : What kinds of operations can this perform? • Still other operations operate on both the domain and the range of f .

  8. Linear Shift Invariant Systems (LSIS) Linearity: Shift invariance:

  9. LSIS Example of LSIS Defocused image ( g ) is a processed version of the focused image ( f ) Ideal lens is a LSIS Linearity: Brightness variation Shift invariance: Scene movement (not valid for lenses with non-linear distortions)

  10. Convolution LSIS is doing convolution; convolution is linear and shift invariant kernel h

  11. Convolution - Example Eric Weinstein’s Math World

  12. Convolution - Example 1 1 -1 1 -1 1 1 -2 -1 1 2

  13. Convolution Kernel – Impulse Response • What h will give us g = f ? Dirac Delta Function (Unit Impulse) Sifting property:

  14. Optical System point source point spread function • However, optical systems are never ideal. • Point spread function of Human Eyes Point Spread Function Optical System scene image • Ideally, the optical system should be a Dirac delta function.

  15. Point Spread Function normal vision myopia hyperopia astigmatism Images by Richmond Eye Associates

  16. Cascade system Properties of Convolution • Commutative • Associative

  17. How to Represent Signals? • Option 1: Taylor series represents any function using polynomials. • Polynomials are not the best - unstable and not very physically meaningful. • Easier to talk about “signals” in terms of its “frequencies” (how fast/often signals change, etc).

  18. Jean Baptiste Joseph Fourier (1768-1830) • Had crazy idea (1807): • Any periodic function can be rewritten as a weighted sum of Sines and Cosines of different frequencies. • Don’t believe it? • Neither did Lagrange, Laplace, Poisson and other big wigs • Not translated into English until 1878! • But it’s true! • called Fourier Series • Possibly the greatest tool used in Engineering

  19. A Sum of Sinusoids • Our building block: • Add enough of them to get any signal f(x) you want! • How many degrees of freedom? • What does each control? • Which one encodes the coarse vs. fine structure of the signal?

  20. Inverse Fourier Transform Fourier Transform F(w) f(x) F(w) f(x) Fourier Transform • We want to understand the frequency w of our signal. So, let’s reparametrize the signal by w instead of x: • For every w from 0 to inf, F(w) holds the amplitude A and phase f of the corresponding sine • How can F hold both? Complex number trick!

  21. Time and Frequency • example : g(t) = sin(2pf t) + (1/3)sin(2p(3f) t)

  22. Time and Frequency • example : g(t) = sin(2pf t) + (1/3)sin(2p(3f) t) = +

  23. Frequency Spectra • example : g(t) = sin(2pf t) + (1/3)sin(2p(3f) t) = +

  24. Frequency Spectra • Usually, frequency is more interesting than the phase

  25. Frequency Spectra = + =

  26. Frequency Spectra = + =

  27. Frequency Spectra = + =

  28. Frequency Spectra = + =

  29. Frequency Spectra = + =

  30. Frequency Spectra =

  31. Frequency Spectra

  32. FT: Just a change of basis M * f(x) = F(w) = * . . .

  33. IFT: Just a change of basis M-1 * F(w)= f(x) = * . . .

  34. Arbitrary function Single Analytic Expression Spatial Domain (x) Frequency Domain (u) Fourier Transform – more formally Represent the signal as an infinite weighted sum of an infinite number of sinusoids Note: (Frequency Spectrum F(u)) Inverse Fourier Transform (IFT)

  35. Fourier Transform • Also, defined as: Note: • Inverse Fourier Transform (IFT)

  36. Fourier Transform Pairs (I) Note that these are derived using angular frequency ( )

  37. Fourier Transform Pairs (I) Note that these are derived using angular frequency ( )

  38. Convolution in spatial domain Multiplication in frequency domain Fourier Transform and Convolution Let Then

  39. So, we can find g(x) by Fourier transform IFT FT FT Fourier Transform and Convolution Spatial Domain (x) Frequency Domain (u)

  40. Linearity Scaling Shifting Symmetry Conjugation Convolution Differentiation Properties of Fourier Transform Spatial Domain (x) Frequency Domain (u) Note that these are derived using frequency ( )

  41. Properties of Fourier Transform

  42. Let us use a Gaussian kernel • Then Example use: Smoothing/Blurring • We want a smoothed function of f(x) H(u) attenuates high frequencies in F(u) (Low-pass Filter)!

  43. Image as a Discrete Function

  44. Digital Images The scene is • projected on a 2D plane, • sampled on a regular grid, and each sample is • quantized (rounded to the nearest integer) Image as a matrix

  45. Sampling Theorem Continuous signal: Shah function (Impulse train): Sampled function:

  46. Sampling frequency Only if Sampling Theorem Sampled function:

  47. If When can we recover from ? Only if (Nyquist Frequency) We can use Then and Sampling frequency must be greater than Nyquist Theorem Aliasing

  48. Aliasing

  49. Announcements • Homework 1 is due today in class. • Homework 2 will be out later this evening. • Start homeworks early. • Post questions on bboard.

  50. Next Class • Image Processing and Filtering (continued) • Horn, Chapter 6

More Related