1.06k likes | 1.23k Views
Anti-Aliasing . Jian Huang, CS594, Fall 2008 This set of slides references our text book and the slides used at Ohio State by Prof. Roger Crawfis. Aliasing?. Aliasing. Aliasing comes from in-adequate sampling rates of the continuous signal
E N D
Anti-Aliasing Jian Huang, CS594, Fall 2008 This set of slides references our text book and the slides used at Ohio State by Prof. Roger Crawfis.
Aliasing • Aliasing comes from in-adequate sampling rates of the continuous signal • The theoretical foundation of anti-aliasing has to do with frequency analysis • It’s always easier to look at 1D cases, so let’s first look at a few of those.
Cosine Integrations • Consider these formulas
Improper Cosine Integrals • Evaluating from (-,)
Fourier Transform • The Fourier Transform represents a periodic function as a continuous summation of sin’s and cos’s.
Fourier Transform • Note: • This is also called the direct current or DC component.
Inverse Fourier Transform • We can get back our original function f(x) from F(u) using the inverse transform:
OK – Why do this? • Fourier space is a very good space for analyzing and understanding our signals. • Rarely ever want to transform to Fourier space. • There are some great theories developed in terms of sampling and convolution.
Fourier Analysis • By looking at F(u), we get a feel for the “frequencies” of the signal. • We also call this frequency space. • Intuitively, you can envision, the sharper an edge, the higher the frequencies. • From a numerical analysis standpoint, the sharper the edge the greater the tangent magnitude, and hence the interpolation errors.
Fourier Analysis • Bandlimited • We say a function is bandlimited, if F(u)=0 for all frequencies u>c and u<-c. • Amplitude Spectrum • The magnitude, |F(u)|, is called the amplitude spectrum or simply the spectrum. • Phase Spectrum or Phase
Fourier Properties • Linearity • Scaling
Convolution • Definition:
Convolution • Pictorially f(x) h(x)
x Convolution h(t-x) f(t)
Convolution • Consider the function (box filter):
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
Convolution • This function windows our function f(x). f(t)
f(t) Convolution • This particular convolution smooths out some of the high frequencies in f(x). f(x)g(x)
Filtering and Convolution Different functions achieve different Results.
Impulse Function • Consider the special function (called impulse): such that,
Impulse and Convolution • Then, if we take the convolution of f(x) with d(x), we get: f(x)d(x) = f(x)
Sampling Function • A Sampling Function or Impulse Train is defined by: where T is the sample spacing. T
Sampling Function • The Fourier Transform of the Sampling Function is itself a sampling function. • The sample spacing is the inverse.
Convolution Theorem • The convolution theorem states that convolution in the spatial domain is equivalent to multiplication in the frequency domain, and vica versa.
Convolution Theorem • This powerful theorem can illustrate the problems with our point sampling and provide guidance on avoiding aliasing. • Consider: f(x) ST(x) f(t) T
S(u) Convolution Theorem • What does this look like in the Fourier domain? F(u)