Math Review Towards Fourier Transform

Slides:



Advertisements
Similar presentations
DCSP-3: Fourier Transform (continuous time) Jianfeng Feng
Advertisements

Complex numbers Definitions Conversions Arithmetic Hyperbolic Functions.
Leo Lam © Signals and Systems EE235. Courtesy of Phillip Leo Lam ©
Computer Vision Lecture 7: The Fourier Transform
Review of 1-D Fourier Theory:
3D Geometry for Computer Graphics
Time Series II.
Leo Lam © Signals and Systems EE235 Leo Lam.
Lecture 7: Basis Functions & Fourier Series
1D Fourier Analysis Dr. Rolf Lakaemper. Sound Let’s have a look at SOUND: SOUND: 1 dimensional function of changing (air-)pressure in time Pressure Time.
UBI 516 Advanced Computer Graphics
Signal , Weight Vector Spaces and Linear Transformations
2D Fourier Theory for Image Analysis Mani Thomas CISC 489/689.
1 Sinusoidal Functions, Complex Numbers, and Phasors Discussion D14.2 Sections 4-2, 4-3 Appendix A.
Deconstructing periodic driving voltages (or any functions) into their sinusoidal components: It's easy to build a periodic functions by choosing coefficients.
Lecture 2: Geometry vs Linear Algebra Points-Vectors and Distance-Norm Shang-Hua Teng.
Transforms: Basis to Basis Normal Basis Hadamard Basis Basis functions Method to find coefficients (“Transform”) Inverse Transform.
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2006 Don Fussell Orthogonal Functions and Fourier Series.
Fourier Series Or How I Spent My Summer Vacation (the 2 weeks after the AP Exam) Kevin Bartkovich Phillips Exeter Academy 1.
Quantum Mechanics(14/2)Taehwang Son Functions as vectors  In order to deal with in more complex problems, we need to introduce linear algebra. Wave function.
Motivation Music as a combination of sounds at different frequencies
Image Processing Fourier Transform 1D Efficient Data Representation Discrete Fourier Transform - 1D Continuous Fourier Transform - 1D Examples.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Orthogonal Functions and Fourier Series.
OUTLINE Wave Sinusoidal signal review Complex exponential signal
CS654: Digital Image Analysis Lecture 12: Separable Transforms.
Where we’ve been Attenuate, Amplify, Linearize, Filter.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Background Any function that periodically repeats itself.
Lecture 7: Sampling Review of 2D Fourier Theory We view f(x,y) as a linear combination of complex exponentials that represent plane waves. F(u,v) describes.
October 29, 2013Computer Vision Lecture 13: Fourier Transform II 1 The Fourier Transform In the previous lecture, we discussed the Hough transform. There.
Leo Lam © Signals and Systems EE235. Leo Lam © Today’s menu Happy May! Chocolates! Fourier Series Vote!
1 ELECTRICAL TECHNOLOGY EET 103/4  Define and explain sine wave, frequency, amplitude, phase angle, complex number  Define, analyze and calculate impedance,
1 ECE 3336 Introduction to Circuits & Electronics Note Set #8 Phasors Spring 2013 TUE&TH 5:30-7:00 pm Dr. Wanda Wosik.
Spatial Frequencies Spatial Frequencies. Why are Spatial Frequencies important? Efficient data representation Provides a means for modeling and removing.
CIS 350 – 4 The FREQUENCY Domain Dr. Rolf Lakaemper.
Section 5.1 Length and Dot Product in ℝ n. Let v = ‹v 1­­, v 2, v 3,..., v n › and w = ‹w 1­­, w 2, w 3,..., w n › be vectors in ℝ n. The dot product.
2008/10/23 System Arch 2008 (Fire Tom Wada) 1 OUTLINE Wave Sinusoidal signal review Complex exponential signal Complex amplitude (phasor) What is Spectrum.
1 Graphics CSCI 343, Fall 2015 Lecture 9 Geometric Objects.
Superposition of Waves
Periodic Function Review
2D Fourier Transform.
CHAPTER 1 COMPLEX NUMBER. CHAPTER OUTLINE 1.1 INTRODUCTION AND DEFINITIONS 1.2 OPERATIONS OF COMPLEX NUMBERS 1.3 THE COMPLEX PLANE 1.4 THE MODULUS AND.
Ch # 11 Fourier Series, Integrals, and Transform 1.
The Frequency Domain Digital Image Processing – Chapter 8.
DSP-First, 2/e LECTURE #3 Complex Exponentials and Complex Numbers.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
CA 302 Computer Graphics and Visual Programming
The Fourier Transform Jean Baptiste Joseph Fourier.
Spaces.
CHAPTER 1 COMPLEX NUMBER.
LECTURE #3 Complex Exponentials & Complex Numbers
Addition and Subtraction Formulas
The Fourier Transform Jean Baptiste Joseph Fourier.
Sinusoidal Functions, Complex Numbers, and Phasors
Introduction to Digital Signal Processing
4.6 – Graphs of Composite Trigonometric Functions
Math Review CS474/674 – Prof. Bebis.
4.6 – Graphs of Composite Trigonometric Functions
CSE 411 Computer Graphics Lecture #2 Mathematical Foundations
Fourier Series September 18, 2000 EE 64, Section 1 ©Michael R. Gustafson II Pratt School of Engineering.
I. Previously on IET.
7.2 Even and Odd Fourier Transforms phase of signal frequencies
Lecture 2: Geometry vs Linear Algebra Points-Vectors and Distance-Norm
Graphs of Sine and Cosine: Sinusoids
System Arch 2007 (Fire Tom Wada)
Fourier Transforms.
OUTLINE Wave Sinusoidal signal review Complex exponential signal
OUTLINE Wave Sinusoidal signal review Complex exponential signal
Discrete Fourier Transform
Signals and Spectral Methods
System Arch 2006 (Fire Tom Wada)
Presentation transcript:

Math Review Towards Fourier Transform Image Processing Math Review Towards Fourier Transform Linear Spaces Change of Basis Cosines and Sines Complex Numbers

Vector Spaces and Basis Vectors Part I: Vector Spaces and Basis Vectors

Basis Vectors A given vector value is represented with respect to a coordinate system. The coordinate system is arbitrarily chosen. A coordinate system is defined by a set of linearly independent vectors forming the system basis. Any vector value is represented as a linear sum of the basis vectors. a= 0.5 *v1+1*v2 (0.5 , 1)v v1, v2 are basis vectors The representation of a with respect to this basis is (0.5,1) a v1 v2

Orthonormal Basis Vectors If the basis vectors are mutually orthogonal and are unit vectors, the vectors form an orthonormal basis. Example: The standard basis is orthonormal: V1=(1 0 0 0 …) V2=(0 1 0 0 …) V3=(0 0 1 0 …) …. V2=(0 1) a V1=(1 0)

Change of Basis v2 v1 a u2 u1 Question: Given a vector av, represented in an orthonormal basis {vi} , what is the representation of av in a different orthonormal basis {ui}? Answer:

Change of Basis: Matrix Form v2 v1 a u2 u1 Defining the new basis as a collection of columns in a matrix form

Signal (image) Transforms Basis Functions. Method for finding the transform coefficients given a signal. Method for finding the signal given the transform coefficients.

Standard Basis Functions - 1D The Orthonormal Standard Basis - 1D Wave Number 1 2 3 4 5 6 7 8 9 N = 16 Standard Basis Functions - 1D

The Orthonormal Hadamard Basis – 1D Wave Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 N = 16

Hadamard Transform Standard Basis New Basis Grayscale Image Transformed Image spatial Coordinate Transform Coordinate Standard Basis: [ 2 1 6 1 ]standard= 2 [ 1 0 0 0 ] + 1 [ 0 1 0 0 ] + 6 [ 0 0 1 0 ] + 1 [ 0 0 0 1 ] Hadamard Transform: [ 2 1 6 1 ]standard = = 5 [ 1 1 1 1 ]/2 + -2 [ 1 1 -1 -1 ] /2 + 2 [ -1 1 1 -1 ] /2 + -3 [ -1 1 -1 1 ] /2  [ 5 -2 2 -3 ] Hadamard

Finding the transform coefficients X = [ 2 1 6 1 ] standard Signal: Hadamard Basis: T0 = [ 1 1 1 1 ] /2 T1 = [ 1 1 -1 -1 ] /2 T2 = [ -1 1 1 -1 ] /2 T3 = [ -1 1 -1 1 ] /2 Hadamard Coefficients: a0 = <X,T0 > = < [ 2 1 6 1 ] , [ 1 1 1 1 ] > /2 = 5 a1 = <X,T1 > = < [ 2 1 6 1 ] , [ 1 1 -1 -1 ] > /2 = -2 a2 = <X,T2 > = < [ 2 1 6 1 ] , [ -1 1 1 -1 ] > /2 = 2 a3 = <X,T3 > = < [ 2 1 6 1 ] , [ -1 1 -1 1 ] > /2 = -3 Signal: [ 2 1 6 1 ] Standard  [ 5 -2 2 -3 ] Hadamard

Transforms: Change of Basis - 2D Grayscale Image Transformed Image V Coordinates Y Coordinate X Coordinate U Coordinates The coefficients are arranged in a 2D array.

Hadamard Basis Functions Black = +1 White = -1 size = 8x8

Transforms: Change of Basis - 2D Standard Basis: 1 0 0 0 [ ] 2 1 6 1 0 1 + 1 + 6 = 2 Hadamard Transform: 1 1 [ ] 2 1 6 1 -1 -1 -1 1 1 -1 -3 +2 -2 = 5 /2 [ 5 -2 2 -3 ]  Hadamard

Finding the transform coefficients 2 1 6 1 [ ] X = Signal: standard New Basis: [ ]/2 1 1 -1 -1 [ ]/2 1 1 T11 = T12 = [ -1 1 1 -1 ]/2 [ ]/2 -1 1 T21 = T22 = Signal: X = a11T11 +a12T12 + a21T21 + a22T22 New Coefficients: a11 = <X,T11 > = sum(sum(X.*T11)) = 5 a12 = <X,T12 > = sum(sum(X.*T12)) = -2 a21 = <X,T21 > = sum(sum(X.*T21)) = 2 a22 = <X,T22 > = sum(sum(X.*T22)) = -3 5 -2 2 -3 ] [ X  new

[ ] [ ] [ ] [ ] ] [ [ ] [ ] Standard Basis: Hadamard Transform: 1 0 1 0 0 0 ] 0 1 0 0 0 1 [ 2 1 6 1 ] coefficients Standard Basis Elements Hadamard Transform: 1 1 [ ] [ ] 1 1 -1 -1 5 -2 2 -3 ] [ /2 /2 -1 1 1 -1 [ ] -1 1 [ ] Hadamard coefficients /2 /2 Hadamard Basis Elements

Part II: Sines and Cosines

Wavelength and Frequency of Sine/Cosin 1 sin()  1 cos() 1 x The wavelength of sin(x) is 2 . The frequency is 1/(2) .

1 x 1 x 2/2 1 x

The wavelength of sin(2x) is 1/ . The frequency is  . Define K=2 1 x The wavelength of sin(2x) is 1/ . The frequency is  .

Changing Amplitude: A x Changing Phase: x

} Sine vs Cosine sin(x) = cos(x) with a phase shift of p/2.

sin(x) + cos(x) = sin(x) scaled by with a phase shift of p/4. Sine vs Cosine sin(x) + cos(x) = sin(x) scaled by with a phase shift of p/4. 3 sin(kx) + 4 cos(kx) = sin(kx) with amplitude scaled by 5 and phase shift of 0.3p 3 sin(kx) 4 cos(kx) 5 sin(kx + 0.3p)

Combining Sine and Cosine If we add a Sine wave to a Cosine wave with the same frequency we get a scaled and shifted (Co-) Sine wave with the same frequency: What is the result if a=0? What is the result if b=0? (prove it!) tan()

Part III: Complex Numbers

Complex Numbers Two kind of representations for a point Imaginary (a,b) b R The Complex Plane  Real a Two kind of representations for a point (a,b) in the complex plane The Cartesian representation: The Polar representation: (Complex exponential) Conversions: Polar to Cartesian: Cartesian to Polar

Conjugate of Z is Z*: Cartesian rep. Polar rep. Imaginary b R  Real a - R -b

Algebraic operations: addition/subtraction: multiplication: inner Product: norm:

Number Multiplication Im A*B B A   Re

The (Co-) Sinusoid The (Co-)Sinusoid as complex exponential: Or What about generalization? S sin(kx) + C cos(kx) = ?

S C We saw that : S sin(kx) + C cos(kx) = R sin(kx + ) Using Complex exponentials: Scaling and phase shifting can be represented as a multiplication with and also æ C ö where R = S 2 + C 2 and q = tan - 1 ç ç è S ø Example 6sin(kx) + 4cos(kx) = 1/2 [(4-6i) eikx + (4+6i) e-ikx ]

T H E E N D