Views
3 years ago

Lode's Computer Graphics Tutorial Fourier Transform

Lode's Computer Graphics Tutorial Fourier Transform

There is also another

There is also another way to calculate the FT of color images however, by using quaternions instead ofcomplex numbers, which can convert an image of 4 channels to another image with 4 channels.Before beginning with the Fourier Transform on images, which is the 2D version of the FT, we'll startwith the easier 1D FT, which is often used for audio and electromagnetical signals.To fully understand this tutorial, it'd be interesting to know about complex numbers, their magnitude(amplitude), and argument (phase). If you'd like to learn more about these, there's an appendix aboutcomplex numbers (one of the other html files), or find a tutorial with google.The following two source files can be downloaded to have all the code described:fourier2d.cppfourier1d.cppSignals and SpectraBefore starting with the Fourier Transform, an introduction about Signals and Spectra is in place. Assignals, for now consider signals in the time, like audio and electromagnetic signals. If you plot such asignal in function of time, a simple signal could look like this:This is a sine wave, so if this'd be an audio signal, you'd hear a pure tone with only 1 frequency (likethe beep of a PC speaker, or a very pure flute). The grey curve behind the red curve represents theamplitude of the signal, which is always positive.The spectrum of a signal contains for every frequency, how much of this frequency is in the signal.Since the signal above is a sine, it has only one frequency, so the spectrum would be very simple: onlyone value will be positive (= the frequency of the sine curve), and all others are zero. So the spectrum

would have a single peak. A spectrum has two sides however: the negative side on the left, and thepositive side on the right. The negative side contains negative frequencies. For real signals (with noimaginary part), like audio signals are, the negative side of the spectrum is always a mirrored version ofthe positive side. So for the sine signal above, the positive side will have a single peak, and this peakwill be mirrored in the negative side. This is what it's spectrum looks like:The white curve represents the amplitude of the signal. The red and green curve represent the real andimaginary part of the spectrum, respectively, but a spectrum is raraly represented that way. Normally,both the amplitude and phase of a spectrum are given, but since there's not that much interesting infofor us in it now, the phase isn't included.Let's study another example now: the same sine, but with a DC component added: sin(x)+C. The nameDC component comes from electronics, where it stands for Direct Current (as opposed to AlternatingCurrent). The DC component in any signal, is the time average of it. A sine signal has time average 0,but if however, you add a constant to the sine, the signals time average will become that constant. Thisadding of the constant, results in the sine signal being raised higher above the horizontal axis:Such a constant, or DC component, has frequency 0. So we can expect that the spectrum will get anextra peak at the origin, and indeed, it has:So, if the spectrum of a signal is non-zero at the origin, you know that it's time average isn't zero and it

the Fourier transform and applications
Introduction to Fourier Transform Infrared ... - Nicolet CZ sro
CSC418: Computer Graphics Tutorial 1 - CDF
SLEVES and SLEFES - Computer Graphics Laboratory
THE WAVELET TUTORIAL PART II by ROBI POLIKAR
Fourier transform
Fourier Transform
Fourier Transform
Fourier Transformation
Fourier Theorem & Transforms
Analysis/resynthesis with the short time Fourier transform
Fundamentals of the Discrete Fourier Transform
Fourier Transform - Part I
Fourier Transforms.
Fourier transforms & the convolution theorem - UGAstro
The Discrete Fourier Transform
some notes on the Fourier transform - IGPP
Fast Fourier Transform and MATLAB Implementation
Lecture: Fourier Transform - biomachina.org
Chapter 8 Fourier Transforms
The Fast Fourier Transform - LOMONT.org
Lecture SS4 – Fourier Transforms