0% found this document useful (0 votes)
143 views4 pages

Fourier Transform: (1, 0) (0, 1) (X, Y) X (1, 0) + y (0, 1)

The document introduces the Fourier transform as an effective way to represent images. It explains that the Fourier transform provides an orthonormal basis for images in the same way that vectors in 2D space can be represented by a linear combination of orthogonal basis vectors. The Fourier transform decomposes a function into a sum of sinusoids, which form an orthogonal basis. This orthogonal basis allows for properties like projection and an analog of the Pythagorean theorem to understand the representation.

Uploaded by

Fadi Awni Eleiwi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
143 views4 pages

Fourier Transform: (1, 0) (0, 1) (X, Y) X (1, 0) + y (0, 1)

The document introduces the Fourier transform as an effective way to represent images. It explains that the Fourier transform provides an orthonormal basis for images in the same way that vectors in 2D space can be represented by a linear combination of orthogonal basis vectors. The Fourier transform decomposes a function into a sum of sinusoids, which form an orthogonal basis. This orthogonal basis allows for properties like projection and an analog of the Pythagorean theorem to understand the representation.

Uploaded by

Fadi Awni Eleiwi
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

Fourier Transform

1 Introduction
The next three classes are about smoothing and diffusion. We can think of these as simple ways of spreading information around the image. To understand these, we need to understand some technical results. How do we smooth an image? With convolution. How do we understand the effects of convolution? With the Fourier Transform. How do we diffuse information? This is just smoothing and convolution (in part).

2 Fourier Transform
Well start with the Fourier Transform. This is one effective way of representing images. To see this, we rst ask what properties a good image representation should have. But rst, we back up and look at familiar representations. How do we represent points in 2d? Using their x and y coordinates. What this really means is that we write any point as a linear combination of two vectors (1, 0) and (0, 1). (x, y) = x(1, 0) + y(0, 1). These vectors form an orthonormal basis for the plane. That means they are orthogonal (1, 0), (0, 1) = 0, and of unit magnitude. Why is an orthonormal basis a good representation? There are many reasons, but two are: 1. Projection. To nd the x coordinate, we take (x, y), (1, 0) . 2. Pythagorean theorem. (x, y)
2

= x2 + y 2 .

The Fourier series will provide an orthonormal basis for images.

2.1 Image Representations:


To simplify, Ill do everything in terms of a 1D function f (t), but all this extends to 2D images. Well start by considering periodic functions that go from 0 to 2, which turn out to be easier. The main thing Ill do to make things easier, though, is to be very sloppy mathematically, skipping precise conditions and giving intuitions instead of complete proofs. For real math, refer to one of the references. We can think of our ordinary representation of functions as like the sum of delta functions. Recall a delta function, ds (t) is 0 for t = s, innite at t = s, but ds (t)dt = 1. f (t) = f (t)ds (t)ds

That is, its an innite sum of scaled delta functions. In a sense, these form an orthonormal basis, but they are uncountable, which is awkward. For example, any nite subset of them provide a poor approximation to f (or any countable subset for that matter). We can do much better. Another representation is familiar from the Riemann integral. Dene a series of step functions that ll the interval. That is, let: 2(i 1) 2i k for <= t <= 2 k k Then gk = gk,1 , gk,k provides a nite basis for piecewise constant functions. We can approximate f as a linear combination of these. gk,i (t) =
k

f (t)
i=1

ai gk,i

In the limit, this approximation becomes arbitrarily good. The Riemann integral computes the sum of the area of functions, in the limit. If we take the union of all gk we get a countable set of functions that span a linear subspace that gets arbitrarily close to any f (t). So we can represent any f (t) as a countable sum. Question: f (t) has an uncountable number of degrees of freedom. How can we represent it with a countable representation? Answer: We make some continuity assumptions. These imply that if we know f (t) at every rational number, we can determine it at every real number, so they reduce the degrees of freedom of f (t) to the countable. However, the union of all gk do not provide an orthonormal basis, since they are redundant and non-orthogonal. Later, well see how a sort of variation on this basis gives us an orthonormal wavelet basis. For now, we look at the fourier series.

2.2 Fourier Series:


The following functions provide an orthonormal basis for functions: 1 cos(kt) sin(kt) , , for k = 1, 2, 2 We can show these are unit vectors by integrating them from 0 to 2. We can show they are orthonormal by symmetry (or explicit integration). To show they form a basis, we must show that, for any function with appropriate smoothness conditions,

f (t) = a0 +
1

ak cos(kt) + bk sin(kt)

That is,
N N

lim

(f (t) a0
1

ak cos(kt) + bk sin(kt))2 = 0

Why is this true? The intuition is that we rst create a series of delta-like functions like cos2n (t/2). We show that any function can be represented by these in the same way we did

with the series gk . Then show these are linear combinations of cos(kt), sin(kt) using trigonometric identities such as sin(t/2) = (((1 cos(t))/2)) and sin2 t = (1 cos(2t))/2. Notation. We can combine sin and cos into one complex number. eikt = cos(kt) + isin(kt) (using Eulers formula). We let k go from to . This gives us a basis for complex functions (which we dont care about right now) and somewhat simpler notation. We can write:

f=
k=

ck eikt

We compute: ck = 1 2
0

f (s)eikt ds

Notice that to take the inner product of complex numbers we must take the complex conjugate of one. So, for example, the inner product of (1 + i) with itself is not 12 + i2 = 0, but is 12 i2 = 2. For real valued functions, this representation is equivalent to writing the Fourier series out using sines and cosines, though it is simpler and more compact. This is because: ck eikt + ck eikt = (ck + ck ) cos kt + i(ck ck ) sin kt cos kt 2 sin kt 2 f (s) cos ksds + f (s) sin ksds = 0 0 = ak cos kt + bk sinkt Since the coefcients of an imaginary fourier series are complex, its often useful to discuss its two components as phase and magnitude. F (t) = R(t) + iI(t) Magnitude is (R(u)2 + I(u)2 )1/2 , phase is tan1 I(u)/R(u).

2.3 Implications of the orthonormality of the fourier series


As with an orthonormal basis for vectors, the orthonormality of the fourier series means that we can use projection and (a generalization of) the Pythagorean theorem. We dene the inner product between functions just the same way we do between vectors. Multiplying and summing. So, for example: f (t), sint = So we have: a0 = (1/) f (t), 1 = (1/2) This is called the DC component of f. And: ak = (1/) f (t), cos(kt) = (1/) bk = (1/) f (t), sin(kt) = (1/) f (t) cos(kt)dt f (t) sin(kt)dt f (t)dt. f (t)sin(t)dt

And then: f (t) = a0 /2 + ak cos(kt) + bk sin(kt) The analog to the Pythagorean theorem is called Parsevaals theorem. This is: f 2 (t) = (/2)a2 + ( 0 a2 + b2 ). i i

And if we approximate a function with a nite number of terms in a fourier series, we can measure the quality of this approximation.
N

(f (t) a0 /2
1

ak cos(kt) +

bk sin(kt))2 = (
N +1

ak cos(kt) +

bk sin(kt))2

2.4 Fourier Transform


Weve talked about approximating periodic functions over the interval 0 to 2. Its basically the same to approximate arbitrary functions. First, to approximate periodic functions over a longer interval, we just reparameterize to get something periodic from 0 to 2, use the Fourier series, and then unreparameterize. For an arbitrary interval, we take the limit of this process. If f (t) is periodic over the interval 0 to 2l, we take: f (t) = ak eikt/l

If we take the limit as l , this is equivalent to using eikt for any real value of k. So, instead of taking a sum, we must take an integral.

f (t) =

F (t)eikt

This makes sense, because if we have a long enough interval, any two sine waves with different (real, not integer) frequencies will be orthogonal, because eventually they go completely out of phase. So for example, sin(t) and sin(1.5t) will be orthogonal over an interval of 0 to 4, even though they wouldnt be over an interval of 0 to 2pi. So, we have:

F (t) =

f (t)eikt

So inverting the fourier transform is almost the same as taking it.

You might also like