Dr. Nikos Desypris, Oct Lecture 3

Slides:



Advertisements
Similar presentations
Computer Vision Lecture 7: The Fourier Transform
Advertisements

ECE 4371, Fall, 2014 Introduction to Telecommunication Engineering/Telecommunication Laboratory Zhu Han Department of Electrical and Computer Engineering.
Fourier Transform (Chapter 4)
Frequency Domain The frequency domain
1 Chapter 16 Fourier Analysis with MATLAB Fourier analysis is the process of representing a function in terms of sinusoidal components. It is widely employed.
Fourier Transform – Chapter 13. Image space Cameras (regardless of wave lengths) create images in the spatial domain Pixels represent features (intensity,
Chapter Four Image Enhancement in the Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
Fourier Transform – Chapter 13. Fourier Transform – continuous function Apply the Fourier Series to complex- valued functions using Euler’s notation to.
SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information.
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
School of Computing Science Simon Fraser University
Digital Image Processing
Computer Graphics Recitation 6. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
Computer Graphics Recitation 7. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
Sampling theorem, I  Suppose function h(t) is sampled at evenly spaced intervals in time; – 1/  : Sampling rate  For any sampling interval , there.
lecture 5, Sampling and the Nyquist Condition Sampling Outline  FT of comb function  Sampling Nyquist Condition  sinc interpolation Truncation.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
The Frequency Domain Sinusoidal tidal waves Copy of Katsushika Hokusai The Great Wave off Kanagawa at
Basics of Signal Processing. frequency = 1/T  speed of sound × T, where T is a period sine wave period (frequency) amplitude phase.
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
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.
Integral Transform Dongsup Kim Department of Biosystems, KAIST Fall, 2004.
Discrete-Time and System (A Review)
Lecture 1 Signals in the Time and Frequency Domains
Basics of Signal Processing. SIGNALSOURCE RECEIVER describe waves in terms of their significant features understand the way the waves originate effect.
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Fourier series. The frequency domain It is sometimes preferable to work in the frequency domain rather than time –Some mathematical operations are easier.
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
Wireless and Mobile Computing Transmission Fundamentals Lecture 2.
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.
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.
Chapter 2 Signals and Spectra (All sections, except Section 8, are covered.)
Part 4 Chapter 16 Fourier Analysis PowerPoints organized by Prof. Steve Chapra, University All images copyright © The McGraw-Hill Companies, Inc. Permission.
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.
revision Transfer function. Frequency Response
2D Sampling Goal: Represent a 2D function by a finite set of points.
Fourier Transform.
Dr. Abdul Basit Siddiqui FUIEMS. QuizTime 30 min. How the coefficents of Laplacian Filter are generated. Show your complete work. Also discuss different.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
2D Fourier Transform.
The Frequency Domain Digital Image Processing – Chapter 8.
Fourier transform.
Digital Image Processing Lecture 7: Image Enhancement in Frequency Domain-I Naveed Ejaz.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
بسم الله الرحمن الرحيم Lecture (12) Dr. Iman Abuel Maaly The Discrete Fourier Transform Dr. Iman Abuel Maaly University of Khartoum Department of Electrical.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Signal Fndamentals Analogue, Discrete and Digital Signals
Sampling (Section 4.3) CS474/674 – Prof. Bebis.
Sampling Week 7, Fri 17 Oct 2003 p1 demos sampling.
Advanced Computer Graphics
MECH 373 Instrumentation and Measurements
MECH 373 Instrumentation and Measurements
Image Enhancement in the
Lecture Signals with limited frequency range
EE Audio Signals and Systems
Fourier Transform.
CSCE 643 Computer Vision: Image Sampling and Filtering
Chapter 8 The Discrete Fourier Transform
Lesson Week 8 Fourier Transform of Time Functions (DC Signal, Periodic Signals, and Pulsed Cosine)
Chapter 8 The Discrete Fourier Transform
Chapter 3 Sampling.
Discrete Fourier Transform
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
Presentation transcript:

Dr. Nikos Desypris, ndessipris@yahoo.com Oct. 2017 Lecture 3 Digital Television Dr. Nikos Desypris, ndessipris@yahoo.com Oct. 2017 Lecture 3

Course Outline Signals and frequencies (harmonics) Fourier Transform FT & Power Spectrum Nyquist theorem Discrete FT (DFT) and Inverse DFT (IDFT) Discrete Cosine Transform (DCT) and Inverse DCT (IDCT)

What is a signal? In the fields of communications, signal processing, and in electrical engineering more generally, a signal is any time-varying or spatial-varying quantity. .... In the physical world, any quantity measurable through time or over space can be taken as a signal. .... Despite the complexity of such systems, their outputs and inputs can often be represented as simple quantities measurable through time or across space (www.wikipedia.org).

What is a signal? (cnt.) Signals are generally analogue, meaning that they have values at any time or at any spatial location. Often signals are expressed with the notion of function i.e.: a signal is a function of time or a function of length.

Fourier Analysis of a Periodic Signal

Euler Formula of a sinewave To reconstruct a sin/cos of period T=1/f, I need to know: A&φ

Fourier Transform

Time & Frequency domain Continuous signal

Time & Frequency domain Discrete signal

Time & Frequency domain Discrete signal

Time & Frequency domain Discrete signal

Continuous/Finite/Digital signals Continuous signals are signals that theoretically have an infinite duration (over time or across space or both). Finite signals are signals that have finite duration, they are either restricted in a specific period of time (i.e from t0 to t0+Δt) or have a specific spatial extend (i.e. a line that extend from location x0 to location x0+Δx). A finite signal is an analogue signal.  A digital signal is an analogue signal that has been sampled at (usually) repetitive intervals. Digital signals are approximations of analogue signals and exist only for the points / locations / intervals where they were sampled.

Fourier Transform in 1-D The theory of Fourier Transform tells us that any signal can be expressed as a sum of a series of sinusoids of different frequencies. Practically this means that we have two representations of a signal: one representation in the time domain where the signal is a function of time and - the other representation in which the signal is a representation of frequencies (i.e no time is involved).

Fourier Transform in 1-D (cnt.) The important point to notice is that both representations depict the same signal and we can move from time domain to frequency domain through mathematical transforms. Since the transforms are rather complicated we will try to present them in a schematic way in order to grasp the basic notions first in one dimension and secondly in two dimensions.

Fourier Transform of signals FT of aperiodic signals (infinite number of frequencies, infinite range) Fourier Transform can work on Aperiodic Signals. Fourier Transform is an infinite sum of infinitesimal sinusoids. Fourier Transform has an inverse transform, that allows for conversion from the frequency domain back to the time domain FT of finite periodic signals (infinite no of frequencies, specific range) FT of a periodic bandpass signal (specific range of frequencies and specific range/length)

Fourier Transform of signals Time Domain Frequency Domain Aperiodical Continuous, Infinite Periodical Continuous, Finite Continuous, Infinite Digital Signals Discrete, Finite (periodical)

FT & Inverse FT in one dimension

FT & Inverse FT in one dimension

DFT & Inverse DFT in 1D The DFT of a periodical signal of one discrete variable extended over N samples is (Discrete Fourier Transform DFT){f(x)} = Given F(u), f(t) can be obtained through the Inverse Discrete Fourier Transform - IDFT (Inverse DFT){F(u)} =

The Nyquist sampling theorem Recorded image Sensor 24 elements per image width 2d Image of a sinus Freq = 8 cycles per image width White -> 256 Profile of an image line Black -> 0

The Nyquist sampling theorem Recorded image Sensor 24 elements per image width 2d Image of a sinus Freq = 8 cycles per image width White -> 256 Profile of an image line Black -> 0

The Nyquist sampling theorem Recorded image Sensor: 6 elements per image width 2d Image of a sinus Freq = 8 cycles per image width White -> 256 Profile of an image line Black -> 0

The Nyquist sampling theorem Recorded image Sensor: 6 elements per image width 2d Image of a sinus Freq = 8 cycles per image width White -> 256 Profile of an image line Black -> 0

The Nyquist sampling theorem Sensor size? 2d Image of a sinus Freq = 8 cycles per image width White -> 256 Profile of an image line Black -> 0

The Nyquist sampling theorem Recorded image Sensor: 16 elements per image size 2d Image of a sinus Freq = 8 cycles per image width White -> 256 Profile of an image line Black -> 0

The Nyquist sampling theorem Recorded image Sensor 2d Image of a sinus Freq = 8 cycles per image width White -> 256 Profile of an image line Black -> 0

The Nyquist sampling theorem The Nyquist theorem: In order not to lose information, we must sample the analogue signal with a rate at least double the maximum frequency component that exists in the signal The only solution to the aliasing problem is to ensure that the sampling rate is higher than twice of the highest frequency present in the signal. If that is not possible, then use an anti-aliasing filter to screen out those frequencies higher than ½ of the sampling frequency before sampling, assuming the removed frequencies are not of importance.

The Nyquist sampling theorem In practice we need to sample the image above the Nyquist rate! Sensor 2d Image of a sinus Freq = 8 cycles per image width White -> 256 Profile of an image line Black -> 0

The Nyquist sampling theorem Sampling points Original signal Sampled signal Two different sinusoids that fit the same set of samples; better to go above Nyquist rate.

The Nyquist sampling theorem Recorded image ?? Sensor size 16 2d Image of a sinus Freq = 8 cycles per image width White -> 256 Profile of an image line Black -> 0

The Nyquist sampling theorem White -> 256 Profile of an image line Black -> 0 White -> 256 Profile of an image line Black -> 0

Fourier Transform of signals FT of aperiodic signals (infinite number of frequencies, infinite range) Fourier Transform can work on Aperiodic Signals. Fourier Transform is an infinite sum of infinitesimal sinusoids. Fourier Transform has an inverse transform, that allows for conversion from the frequency domain back to the time domain FT of finite periodic signals (infinite no of frequencies, specific range) FT of a periodic bandpass signal (specific range of frequencies and specific range/length)

Fourier Transform of signals Time Domain Frequency Domain Aperiodical Continuous, Infinite Periodical Continuous, Finite Continuous, Infinite Digital Signals Discrete, Finite (periodical)

DFT & Inverse DFT in 1D The DFT of a periodical signal of one discrete variable extended over N samples is (Discrete Fourier Transform DFT){f(x)} = Given F(u), f(t) can be obtained through the Inverse Discrete Fourier Transform - IDFT (Inverse DFT){F(u)} =

1D DFT by example

1D DFT by example

1D DFT by example Spatial Domain f(0), f(1), f(2), f(3) Frequency Domain F(0), F(1), F(2), F(3) F(u) = R(u) + j I(u) F(u) = |F(u)| * exp (-j φ(u))

Euler Formula of a sinewave To reconstruct a sin/cos of period T=1/f, I need to know: A&φ

Euler Formula of a sinewave http://treeblurb.com/dev_math/sin_canv00.html To reconstruct a sin/cos of period T=1/f, I need to know: A&φ

1D DFT by example Spatial Domain f(0), f(1), f(2), f(3) Frequency Domain F(0), F(1), F(2), F(3) F(u) = R(u) + j I(u) F(u) = |F(u)| * exp (-j φ(u)) So we have a sin/cos of amplitude F(u) and phase φ(u) For the time being we ignore φ(u) and we focus on |F(u)| = sqrt (R*R + I*I) called the Power Spectrum, showing the magnitude of each frequency

1D DFT by example F(0) is the mean value (called also DC component) F(1) is the basic frequency (one cycle through 4 points); F(2) is the –ve of F(1) F(2) corresponds to the 1st harmonic (twice the basic frequency) and is double the frequency of F1

1D DFT by example

From 1D DFT -> 2D DFT The values of f(0), f(1), f(2), and f(3) are now considered pixels of a line of an image f(0) f(1) f(2) f(3) So how we perform a 2D DFT?

2D DFT of a sine wave 2D sinewave 8 horizontal cycles per 256 pixels

2D DFT of a sine wave 2D sinewave 32 cycles per 256 pixels

2D DFT of a sine wave 2D sinewave 8 vertical cycles per 256 pixels

2D DFT of a sine wave 2D sinewave 32 vertical cycles per 256 pixels

2D DFT of a sine wave 2D sinewave 16 diagonal cycles per 256 pixels (width/height)

2D DFT of a sine wave 2D sinewave 16,2 diagonal cycles per 256 pixels (width/height)

2D DFT of a sine wave The figure below, presents replication of the sinusoid with 16.2 diagonal cycles. Note the discrepancies at the edges that result in high frequencies presence in the Power Spectrum

Images and their DFTs Power spectrum of a forest

Images and their DFTs Coins and the corresponding power spectrum of coins. Please note the frequencies multiples of the coin size.

Images and their DFTs Falling stars and its power Spectrum. Please note the existence of high frequencies perpendicular to the direction of the falling stars.

LPF in frequency domain Low pass filtering (step edge causing ringing effect)

Special filter Filter reduces low frequencies (by 0,5) & accentuates high frequencies (by 4.0)

DCT

DCT

DCT

DCT

DCT

DCT

DCT

DCT

DCT