2D Sampling Goal: Represent a 2D function by a finite set of points.

Slides:



Advertisements
Similar presentations
Ch 3 Analysis and Transmission of Signals
Advertisements

Fourier Transform – Chapter 13. Fourier Transform – continuous function Apply the Fourier Series to complex- valued functions using Euler’s notation to.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Sampling (Section 4.3) CS474/674 – Prof. Bebis. Sampling How many samples should we obtain to minimize information loss during sampling? Hint: take enough.
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.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
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
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Sampling Week 7, Fri 17 Oct 2003 p1 demos sampling.
Analogue and digital techniques in closed loop regulation applications Digital systems Sampling of analogue signals Sample-and-hold Parseval’s theorem.
Continuous-Time Signal Analysis: The Fourier Transform
Fourier Transform 2D Discrete Fourier Transform - 2D
Leo Lam © Signals and Systems EE235. Transformers Leo Lam ©
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
First semester King Saud University College of Applied studies and Community Service 1301CT.
The Nyquist–Shannon Sampling Theorem. Impulse Train  Impulse Train (also known as "Dirac comb") is an infinite series of delta functions with a period.
Sampling and Antialiasing CMSC 491/635. Abstract Vector Spaces Addition –C = A + B = B + A –(A + B) + C = A + (B + C) –given A, B, A + X = B for only.
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
Chapter 4: Sampling of Continuous-Time Signals
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
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)
DTFT And Fourier Transform
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.
Fourier Series Summary (From Salivahanan et al, 2002)
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
Chapter #5 Pulse Modulation
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Background Any function that periodically repeats itself.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
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.
CMSC 635 Sampling and Antialiasing. Aliasing in images.
Leo Lam © Signals and Systems EE235 Leo Lam.
If F {f(x,y)} = F(u,v) or F( ,  ) then F( ,  ) = F { g  (R) } The Fourier Transform of a projection at angle  is a line in the Fourier transform.
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.
Lecture 7 Transformations in frequency domain 1.Basic steps in frequency domain transformation 2.Fourier transformation theory in 1-D.
Sampling of Continuous-Time Signals Quote of the Day Optimist: "The glass is half full." Pessimist: "The glass is half empty." Engineer: "That glass is.
ABE425 Engineering Measurement Systems Fourier Transform, Sampling theorem, Convolution and Digital Filters Dr. Tony E. Grift Dept. of Agricultural.
Lecture 3: The Sampling Process and Aliasing 1. Introduction A digital or sampled-data control system operates on discrete- time rather than continuous-time.
2D Fourier Transform.
Fourier transform.
The Fourier Transform.
Sampling (Section 4.3) CS474/674 – Prof. Bebis.
UNIT-II FOURIER TRANSFORM
Sampling Week 7, Fri 17 Oct 2003 p1 demos sampling.
… Sampling … … Filtering … … Reconstruction …
Sampling and Quantization
Image Enhancement in the
Sampling and Reconstruction
(C) 2002 University of Wisconsin, CS 559
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.
Fourier Transform.
Image Acquisition.
Interpolation and Pulse Compression
2D Fourier transform is separable
Discrete Fourier Transform
CSCE 643 Computer Vision: Image Sampling and Filtering
Interpolation and Pulse Shaping
Chapter 2 Ideal Sampling and Nyquist Theorem
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
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.
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
Presentation transcript:

2D Sampling Goal: Represent a 2D function by a finite set of points. - particularly useful to analysis w/ computer operations. Points are sampled every X in x, every Y in y. How will the sampled function appear in the spatial frequency domain? 31-01-1387

Two Dimensional Sampling: Sampled function in freq. domain How will the sampled function appear in the spatial frequency domain? Since The result: Replicated G(u,v), or “islands” every 1/X in u, and 1/Y in v. 31-01-1387

Now sampling the function gives the following in the space domain Example Let g(x,y) =L(x/16)L(y/16) be a continuous function Here we show its continuous transform G(u,v) Now sampling the function gives the following in the space domain 31-01-1387

Fourier Representation of a Sampled Image v 1/Y u Sampling the image in the space domain causes replication in the frequency domain 31-01-1387 1/X

Two Dimensional Sampling: Restoration of original function will filter out unwanted islands. Let’s consider this in the image domain. 31-01-1387

Two Dimensional Sampling: Restoration of original function(2) Each sample serves as a weighting for a 2D sinc function. Nyquist/Shannon Theory: We must sample at twice the highest frequency in x and in y to reconstruct the original signal. (No frequency components in original signal can be or ) 31-01-1387

Two Dimensional Sampling: Example 80 mm Field of View (FOV) 256 pixels Sampling interval = 80/256 = .3125 mm/pixel Sampling rate = 1/sampling interval = 3.2 cycles/mm or pixels/mm Unaliased for ± 1.6 cycles/mm or line pairs/mm 31-01-1387

Example in spatial and frequency domain 31-01-1387 8 Example in spatial and frequency domain Sampling process is Multiplication of infinite train of impulses III(x/∆x) with f(x) or convolution of III(u∆x ) with F(s)→ Replication of F(s) In time domain FT of Shah function By similarity theorem 31-01-1387

Example in Time or Spatial domain 31-01-1387 9 Example in Time or Spatial domain 31-01-1387

A function sampled at uniform spacing can be recovered if 31-01-1387 10 Sampling theorem A function sampled at uniform spacing can be recovered if Aliasing: = overlap of replicated spectra Khjkhk 31-01-1387

Properties of Sampling I 31-01-1387 11 Properties of Sampling I Truncation in Time Domain: Truncation of f(x) to finite duration T = Multiplying f(x) by Rect pulse of T = Convolving the spectrum with infinite sinx/x T = N Δt (Truncation window) 1/T = 1/NΔt= Δs spectrum sample spacing (in DFT) 31-01-1387

This causes Unavoidable Aliasing 31-01-1387 12 Since Truncation is: Multiply f(t) with window or convolve F(s) with narrow sin(x)/x Therefore, it extends frequency range (to infinite) Spectrum of truncation function is always infinite and Truncation destroy bond limitedness & produce alias. This causes Unavoidable Aliasing Khjkhk 31-01-1387

Properties of sampling II 31-01-1387 13 Properties of sampling II 2) There is a Sampling Aperture over which the signal is averaged at each sample point before applying Shah function By convolve f(t) with aperture or multiply F(s) with This reduces high frequency of signal 31-01-1387

Properties of sampling III 31-01-1387 14 Properties of sampling III 3) Since Sampling is multiplication of shah function with continues function Or convolution of F(s) with Convolution of function with an impulse = copy of that function Replicate F(s) every Khjkhk 31-01-1387

Properties of sampling IV 31-01-1387 15 Properties of sampling IV 4) Interpolation or Recovering original function (D/A) To recover original function, we should eliminate the replicas of F(s) and keep one. Either Truncation in Freq should be done. Khjkhk Or convolving sampled g(x) with interpolation sinc 31-01-1387

31-01-1387 16 31-01-1387

Review of Digitizing Parameters 31-01-1387 17 Review of Digitizing Parameters Depend on digitizing equipment: Truncation window Max F.O.V of image Sampling aperture Sensitivity of scanning spot Sampling spacing Spot diameter (adjustable) Interpolation function Displaying spot 31-01-1387

Review of Sampling Parameters 31-01-1387 18 Review of Sampling Parameters To have good spectra resolution (small Δs) and minimum aliasing, parameters N , T and Δt defined. Δt as small as possible small Δs T as long as possible compressed FT To control aliasing: - Bigger sampling aperture - Smaller sampling spacing (over same filter) - Adjust image freq. Sm at most Sm=1/2Δt Khjkhk 31-01-1387

Original image freq. F(s) from 1/Δt reduce to 1/2Δt 31-01-1387 19 Anti aliasing Filter: 1) Using rectangular aperture twice spacing Energy at frequency above S0>1/2Δt is attenuated. Original image freq. F(s) from 1/Δt reduce to 1/2Δt 31-01-1387

Anti aliasing Filter: 2) Using triangular aperture = 4 time of spacing 31-01-1387 20 Anti aliasing Filter: 2) Using triangular aperture = 4 time of spacing Dies of frequency above 1/2Δt 31-01-1387

Examples of whole Sampling Process on a Band limited Signal 31-01-1387 21 Examples of whole Sampling Process on a Band limited Signal Original signal: 31-01-1387

Truncating the signal: 31-01-1387 22 Truncating the signal: 31-01-1387

Convolving signal with sampling aperture: 31-01-1387 23 Convolving signal with sampling aperture: 31-01-1387

31-01-1387 24 Sampling the signal: 31-01-1387

Interpolating the sample signal (to recover original) 31-01-1387 25 Interpolating the sample signal (to recover original) 31-01-1387

Discrete Fourier Transform g(x) is a function of value for We can only examine g(x) over a limited time frame, Assume the spectrum of g(x) is approximately bandlimited; no frequencies > B Hz. Note: this is an approximation; a function can not be both time-limited and bandlimited. F(u) Notes to self: Title? f(x) x -B -B L 31-01-1387

Sampling and Frequency Resolution F(u) f(x) x -B -B L We will sample at 2B samples/second to meet the Nyquist rate. We sample N points. 31-01-1387

Transform of the Sampled Function Another expression for comes from Views input as linear combination of delta functions where u is still continuous. 31-01-1387

Transform of the Sampled Function (2) where To be computationally feasible, we can calculate at only a finite set of points. Since f(x) is limited to interval 0<x<L , can be sampled every Hz. picture? see notes. 31-01-1387

Discrete Fourier Transform number of samples Discrete Fourier Transform (DFT): Number of samples in x domain = number of samples in frequency domain. 31-01-1387

Periodicity of the Discrete Fourier Transform DFT: F(m) repeats periodically with period N 1) Sampling a continuous function in the frequency domain [F(u) ->f(n)]causes replication of f(n) ( example coming in homework) 2) By convention, the DFT computes values for m= 0 to N-1 DC component positive frequencies negative frequencies 31-01-1387

Properties of the Discrete Fourier Transform Let f(n) F(m) 1. Linearity 2. Shifting If f(x) nF(u) and g(x) n G(u) Example : if k=1 there is a 2 shift as m varies from 0 to N-1 31-01-1387

Inverse Discrete Fourier Transform If f(n) F(m) Why the 1/N ? Let’s take a look at an example f(n)= {1 0 0 0 0 0 0 0} N = 8 = number of samples. for all values of m continued... 31-01-1387

Inverse Discrete Fourier Transform (continued) Now inverse, For n= 0, kernel is simple For other values of n, this identity will help check eqns for correctness? 31-01-1387

31-01-1387 35 31-01-1387