Fourier Theory and its Application to Vision

Slides:



Advertisements
Similar presentations
| Page Angelo Farina UNIPR | All Rights Reserved | Confidential Digital sound processing Convolution Digital Filters FFT.
Advertisements

Sampling and Reconstruction
Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
Symmetry and the DTFT If we know a few things about the symmetry properties of the DTFT, it can make life simpler. First, for a real-valued sequence x(n),
ECE 4371, Fall, 2014 Introduction to Telecommunication Engineering/Telecommunication Laboratory Zhu Han Department of Electrical and Computer Engineering.
Sampling theory Fourier theory made easy
CS 551 / CS 645 Antialiasing. What is a pixel? A pixel is not… –A box –A disk –A teeny tiny little light A pixel is a point –It has no dimension –It occupies.
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F(  ) is the spectrum of the function.
Course 2007-Supplement Part 11 NTSC (1) NTSC: 2:1 interlaced, 525 lines per frame, 60 fields per second, and 4:3 aspect ratio horizontal sweep frequency,
JF 12/04111 BSC Data Acquisition and Control Data Representation Computers use base 2, instead of base 10: Internally, information is represented by binary.
Image Sampling Moire patterns
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Image Sampling Moire patterns -
Orthogonal Transforms
Continuous-Time Signal Analysis: The Fourier Transform
Fourier Transform 2D Discrete Fourier Transform - 2D
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
Function approximation: Fourier, Chebyshev, Lagrange
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
Sampling Theorem, frequency resolution & Aliasing The Sampling Theorem will be the single most important constraint you'll learn in computer-aided instrumentation.
Frequency Domain Representation of Sinusoids: Continuous Time Consider a sinusoid in continuous time: Frequency Domain Representation: magnitude phase.
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
… Representation of a CT Signal Using Impulse Functions
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK Astronomical Data Analysis I 11 lectures, beginning autumn 2008.
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Sept, 98EE421, Lecture 11 Digital Signal Processing (DSP) Systems l Digital processing.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
Ni.com Data Analysis: Time and Frequency Domain. ni.com Typical Data Acquisition System.
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
UNIT - 4 ANALYSIS OF DISCRETE TIME SIGNALS. Sampling Frequency Harry Nyquist, working at Bell Labs developed what has become known as the Nyquist Sampling.
Lecture 1 Signals in the Time and Frequency Domains
Fourier Series Summary (From Salivahanan et al, 2002)
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 4 EE 345S Real-Time.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
Pre-Class Music Paul Lansky Six Fantasies on a Poem by Thomas Campion.
2D Sampling Goal: Represent a 2D function by a finite set of points.
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Projects Project 1a due this Friday Project 1b will go out on Friday to be done in pairs start looking for a partner now.
Oh-Jin Kwon, EE dept., Sejong Univ., Seoul, Korea: 2.3 Fourier Transform: From Fourier Series to Fourier Transforms.
Chapter 2 Ideal Sampling and Nyquist Theorem
Analog-Digital Conversion. Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals.
Lecture 1.4. Sampling. Kotelnikov-Nyquist Theorem.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
UNIT-II FOURIER TRANSFORM
Digital Image Processing Chapter - 4
Jean Baptiste Joseph Fourier
Advanced Computer Graphics
Image Sampling Moire patterns
Lecture Signals with limited frequency range
EE Audio Signals and Systems
Dr. Nikos Desypris, Oct Lecture 3
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F() is the spectrum of the function.
Chapter 2 Signal Sampling and Quantization
Image Sampling Moire patterns
Sampling and the Discrete Fourier Transform
4.1 DFT In practice the Fourier components of data are obtained by digital computation rather than by analog processing. The analog values have to be.
CSCE 643 Computer Vision: Thinking in Frequency
Filtering Part 2: Image Sampling
Chapter 2 Ideal Sampling and Nyquist Theorem
Image Sampling Moire patterns
Chapter 8 The Discrete Fourier Transform
Resampling.
Lesson Week 8 Fourier Transform of Time Functions (DC Signal, Periodic Signals, and Pulsed Cosine)
Chapter 3 Sampling.
Sampling and Aliasing.
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
Presentation transcript:

Fourier Theory and its Application to Vision Mani Thomas CISC 489/689

Road Map of the Talk Sampling and Aliasing Fourier Theory Basics Signals and Vectors 1D Fourier Theory DFT and FFT 2D Fourier Theory Linear Filter theory Image Processing in spectral domain Conclusions

Sampling Theory - ADC Real signals are continuous, but the digital computer can only handle discretized version of the data. Analog to digital conversion and vice versa (ADC and DAC) Sampling measures the analog signal at different moments in time, recording the physical property of the signal (such as voltage) as a number. Approximation to the original signal From the vertical scale, we could transmit the numbers 0, 5, 3, 3, -4, ... as the approximation Courtesy of: http://puma.wellesley.edu/~cs110/lectures/M07-analog-and-digital/ Courtesy of: http://www.cs.ucl.ac.uk/staff/jon/mmbook/book/node96.html

Sampling theory - DAC Digital to Analog conversion Reconstruct the signal from the digital signal Essentially drawing a curve through the points Multiple possible curve can be drawn in (a) First part appears correct but errors in the latter part In (b), sampling has been doubled Reconstructed curve is much better Increased amount of numbers to be transmitted. Courtesy of: http://puma.wellesley.edu/~cs110/lectures/M07-analog-and-digital/

Nyquist Sampling Theorem How often must we sample? First articulated by Harry Nyquist and later proven by Claude Shannon Sample twice as often as the highest frequency you want to capture. fs ¸ 2£ fH (Nyquist rate) fs is the sampling frequency and fH is the highest frequency present in the signal For example, highest sound frequency that most people can hear is about 20 KHz (with some sharp ears able to hear up to 22 KHz), we can capture music by sampling at 44 KHz. That's how fast music is sampled for CD-quality music Courtesy of: http://puma.wellesley.edu/~cs110/lectures/M07-analog-and-digital/

Aliasing If the sampling condition is not satisfied, then frequencies will overlap Aliasing is an effect that causes different continuous signals to become indistinguishable (or aliases of one another) when sampled. Courtesy of http://en.wikipedia.org/wiki/Aliasing

Examples of aliasing Example1 Wagon Wheel effect – Temporal Aliasing The sun moves east to west in the sky, with 24 hours between sunrises. If one were to take a picture of the sky every 23 hours, the sun would appear to move west to east, with 24 × 23 = 552 hours between sunrises. Wagon Wheel effect – Temporal Aliasing The same phenomenon causes spoked wheels to apparently turn at the wrong speed or in the wrong direction when filmed, or illuminated with a flashing light source. Moire pattern – Spatial Aliasing Stripes captured on a digital camera would cause aliasing between the stripes and the camera sensor. Distance between the stripes is smaller than what the sensor can capture Solution to this would be to go closer or to use a higher resolution sensor Courtesy of http://en.wikipedia.org/wiki/Aliasing

Aliasing To prevent aliasing, two things can be done Increase the sampling rate Introduce an anti-aliasing filter Anti-aliasing filter - restricts the bandwidth of the signal to satisfy the sampling condition. This is not satisfiable in reality since a signal will have some energy outside of the bandwidth. The energy can be small enough that the aliasing effects are negligible (not eliminated completely). Anti-aliasing filter: low pass filters, band pass filters, non-linear filters Always remember to apply an anti-aliasing filter prior to signal down-sampling Adapted from http://en.wikipedia.org/wiki/Nyquist-Shannon_sampling_theorem

Signals and Vectors Signals  Vectors (Perfect analogy) Projection of one vector on another Minimum Error when orthogonal

Component of a signal Approximating in terms of another real signal over an interval Minimizing the error signal, Simplification of the above yields the following

Component of a signal Generalizing over N-dimensions As the error energy , which makes the orthogonal set complete i.e. Generalizing to complex signals we have

Component of a signal The series so obtained is the GENERALIZED FOURIER SERIES of with respect to The set is called the basis function or kernel Some well-known basis signals are Trigonometric Exponential Walsh Bessel Legendre Hermite

Gibb’s phenomenon Phenomenon of “ringing” The series exhibits an oscillatory phenomenon The overshoot remained 9% regardless of the number of terms First explained by Willard Gibbs Non uniform convergence at the points of discontinuities The 9% was approximately equal to 1/2n where n is the number of terms courtesy of H. Hel-Or

Fourier transform Using exponential basis of representation Modeling any aperiodic signal Forward transform: time signal into frequency domain representation Inverse transform: frequency representation into the time domain representation Fourier transform pairs: http://130.191.21.201/multimedia/jiracek/dga/spectralanalysis/examples.html

Why the Fourier transform? Some really useful properties Modulation Time differentiation But for computer vision, two of the most important properties are Convolution Time-shifting property

Discrete Fourier Transform Everything till now was continuous, but computers process digital signals DFT - sampled Fourier transform of a sampled signal We thus have the DFT and IDFT pairs This discrete frequency values can be computed on a digital computer Each value of k requires N complex multiplications and N-1 complex additions: O(N2)

Fast Fourier Transform Can the complexity of DFT be improved? 1965 - Cooley and Tukey reduced the algorithm from O(N2) to O(NlogN) The principle based on the fact that have the following two properties Symmetry property Periodicity Property

FFT Convolution – O(N2) Convolution in time == Multiplication in Frequency FFT(signal1) – O(NlogN) FFT(signal2) – O(NlogN) FFT(signal1)FFT(signal2) – O(NlogN) + O(n) = O(NlogN)

Conclusion Sampling theorem Aliasing 1D Fourier transform DFT and FFT Nyquist rate Aliasing Anti aliasing filters 1D Fourier transform DFT and FFT

References “Signal Processing and Linear Systems” B. P. Lathi “Digital Signal Processing: Principles, Algorithms and Applications”, J. G. Proakis and D. G. Manolakis “The Fourier Transform and its application” R.N. Bracewell