Computer Vision - PowerPoint PPT Presentation

About This Presentation
Title:

Computer Vision

Description:

Homework 1 is due today in class. Homework 2 will be out later ... Conjugation. Convolution. Differentiation. frequency ( ) Note that these are derived using ... – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 51
Provided by: csC76
Learn more at: http://www.cs.cmu.edu
Category:

less

Transcript and Presenter's Notes

Title: Computer Vision


1
Computer Vision
  • Spring 2006 15-385,-685
  • Instructor S. Narasimhan
  • Wean 5403
  • T-R 300pm 420pm

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,bxc,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
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 Weinsteins Math World
12
Convolution - Example
1
1
2
-1
-2
13
Convolution Kernel Impulse Response
  • What h will give us g f ?

Dirac Delta Function (Unit Impulse)
Sifting property
14
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
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.
  • Dont believe it?
  • Neither did Lagrange, Laplace, Poisson and other
    big wigs
  • Not translated into English until 1878!
  • But its 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
Fourier Transform
  • We want to understand the frequency w of our
    signal. So, lets 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
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
Fourier Transform and Convolution
Let
Then
39
Fourier Transform and Convolution
Spatial Domain (x)
Frequency Domain (u)
40
Properties of Fourier Transform
Spatial Domain (x)
Frequency Domain (u)
Note that these are derived using
frequency ( )
41
Properties of Fourier Transform
42
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 Theorem
Continuous signal
Shah function (Impulse train)
Sampled function
47
Sampling Theorem
Sampled function
48
Nyquist Theorem
Aliasing
49
Aliasing
50
Announcements
  • Homework 1 is due today in class.
  • Homework 2 will be out later this evening.
  • Start homeworks early.
  • Post questions on bboard.

51
Next Class
  • Image Processing and Filtering (continued)
  • Horn, Chapter 6
Write a Comment
User Comments (0)
About PowerShow.com