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

Slides:



Advertisements
Similar presentations
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Advertisements

Image Processing. Overview ImagesPixel Filters Neighborhood Filters Dithering.
3-D Computational Vision CSc Image Processing II - Fourier Transform.
Fourier Transform (Chapter 4)
Fourier Transform – Chapter 13. Fourier Transform – continuous function Apply the Fourier Series to complex- valued functions using Euler’s notation to.
Linear Filtering – Part II Selim Aksoy Department of Computer Engineering Bilkent University
Fourier Transform in Image Processing
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
1 Image filtering Hybrid Images, Oliva et al.,
CSCE 641 Computer Graphics: Fourier Transform Jinxiang Chai.
3-D Computer Vision – Ioannis Stamos 3-D Computer Vision CSc Image Processing I/Filtering.
1 Image filtering Images by Pawan SinhaPawan Sinha.
Fourier Analysis Without Tears : Computational Photography Alexei Efros, CMU, Fall 2005 Somewhere in Cinque Terre, May 2005.
1 Image filtering
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2011 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
CPSC 641 Computer Graphics: Fourier Transform Jinxiang Chai.
1 Images and Transformations Images by Pawan SinhaPawan Sinha.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
The Frequency Domain : Computational Photography Alexei Efros, CMU, Fall 2008 Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve.
Computational Photography: Fourier Transform Jinxiang Chai.
1 Image filtering Hybrid Images, Oliva et al.,
Fourier Analysis : Rendering and Image Processing Alexei Efros.
Basic Image Processing January 26, 30 and February 1.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Most slides from Steve Seitz
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Signals and Systems Jamshid Shanbehzadeh.
The Frequency Domain Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve Seitz CS194: Image Manipulation & Computational Photography Alexei.
CSC589 Introduction to Computer Vision Lecture 7 Thinking in Frequency Bei Xiao.
EE D Fourier Transform. Bahadir K. Gunturk EE Image Analysis I 2 Summary of Lecture 2 We talked about the digital image properties, including.
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP6 Frequency Space Miguel Tavares Coimbra.
CS654: Digital Image Analysis
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
Recap of Monday linear Filtering convolution differential filters filter types boundary conditions.
7- 1 Chapter 7: Fourier Analysis Fourier analysis = Series + Transform ◎ Fourier Series -- A periodic (T) function f(x) can be written as the sum of sines.
Image as a linear combination of basis images
Lecture 7 Transformations in frequency domain 1.Basic steps in frequency domain transformation 2.Fourier transformation theory in 1-D.
Fourier Transform.
Frequency domain analysis and Fourier Transform
The Frequency Domain Digital Image Processing – Chapter 8.
The Fourier Transform.
Computer Vision – 2D Signal & System Hanyang University Jong-Il Park.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Sampling and Reconstruction.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
The Frequency Domain, without tears
… Sampling … … Filtering … … Reconstruction …
Lecture 1.26 Spectral analysis of periodic and non-periodic signals.
Image Enhancement in the
Miguel Tavares Coimbra
Frequency domain analysis and Fourier Transform
The Frequency Domain : Computational Photography
Image filtering Hybrid Images, Oliva et al.,
Image filtering Images by Pawan Sinha.
CSCE 643 Computer Vision: Thinking in Frequency
Sampling and Reconstruction
Image filtering Images by Pawan Sinha.
Image Processing Today’s readings For Monday
Linear filtering.
Instructor: S. Narasimhan
Basic Image Processing
Image filtering Images by Pawan Sinha.
Fourier Analysis Without Tears
Image filtering
Image filtering
Intensity Transformation
Lecture 7: Signal Processing
Presentation transcript:

Computer Vision Spring ,-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.

Image Processing and Filtering Lecture #5

Image as a Function We can think of an image as a function, f, f: R 2  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:

Image as a Function

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?

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. Image Processing

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

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

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

Convolution - Example Eric Weinstein’s Math World

Convolution - Example

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

Point Spread Function Optical System sceneimage Ideally, the optical system should be a Dirac delta function. Optical System point sourcepoint spread function However, optical systems are never ideal. Point spread function of Human Eyes

Point Spread Function normal visionmyopiahyperopia Images by Richmond Eye Associates astigmatism

Properties of Convolution Commutative Associative Cascade system

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).

Jean Baptiste Joseph Fourier ( ) 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

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?

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

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

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

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

Frequency Spectra Usually, frequency is more interesting than the phase

= + = Frequency Spectra

= + =

= + =

= + =

= + =

=

FT: Just a change of basis * = M * f(x) = F(  )

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

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

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

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

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

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

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

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

Properties of Fourier Transform

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

Image as a Discrete Function

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

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

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

Sampling Theorem Sampled function: Only if Sampling frequency

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

Aliasing

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

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