An Intuitive Explanation of Fourier Theory

Similar documents
3. Image formation, Fourier analysis and CTF theory. Paula da Fonseca

Chapter 36. Diffraction. Dr. Armen Kocharian

Chapter 12 Notes: Optics

Chapter 37. Wave Optics

Simple Spatial Domain Filtering

PHYSICS. Chapter 33 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT

Chapter 37. Interference of Light Waves

DIFFRACTION 4.1 DIFFRACTION Difference between Interference and Diffraction Classification Of Diffraction Phenomena

specular diffuse reflection.

Physics 1CL WAVE OPTICS: INTERFERENCE AND DIFFRACTION Fall 2009

PHY132 Introduction to Physics II Class 5 Outline:

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

Image Sampling and Quantisation

Image Sampling & Quantisation

Chapter 25. Wave Optics

Chapter 38. Diffraction Patterns and Polarization

Formulas of possible interest

Physics I : Oscillations and Waves Prof. S Bharadwaj Department of Physics & Meteorology Indian Institute of Technology, Kharagpur

Digital Image Fundamentals

Ray Optics. Lecture 23. Chapter 23. Physics II. Course website:

Spatial Enhancement Definition

Chapter 24. Wave Optics

INTERFERENCE. where, m = 0, 1, 2,... (1.2) otherwise, if it is half integral multiple of wavelength, the interference would be destructive.

Chapter 24. Wave Optics

INTERFERENCE. A wave travelling in the z direction (for example) satisfies the differential wave equation. For a light wave:

Lecture Wave Optics. Physics Help Q&A: tutor.leiacademy.org

25-1 Interference from Two Sources

Image Restoration and Reconstruction

What is Frequency Domain Analysis?

CHAPTER 26 INTERFERENCE AND DIFFRACTION

Phase. E = A sin(2p f t+f) (wave in time) or E = A sin(2p x/l +f) (wave in space)

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

Interference of Light

Diffraction. Single-slit diffraction. Diffraction by a circular aperture. Chapter 38. In the forward direction, the intensity is maximal.

Physical or wave optics

Fourier Transforms. Laboratory & Computational Physics 2

Fourier Transforms. Laboratory & Comp. Physics 2

Physics 1C DIFFRACTION AND INTERFERENCE Rev. 2-AH. Introduction

f. (5.3.1) So, the higher frequency means the lower wavelength. Visible part of light spectrum covers the range of wavelengths from

Interference and Diffraction of Light

Chapter 2: Wave Optics

Coupling of surface roughness to the performance of computer-generated holograms

Interference of Light

Computer Vision. Fourier Transform. 20 January Copyright by NHL Hogeschool and Van de Loosdrecht Machine Vision BV All rights reserved

Chapter 38 Wave Optics (II)

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Texture. Outline. Image representations: spatial and frequency Fourier transform Frequency filtering Oriented pyramids Texture representation

Fresnel's biprism and mirrors

Contrast Optimization A new way to optimize performance Kenneth Moore, Technical Fellow

CoE4TN4 Image Processing. Chapter 5 Image Restoration and Reconstruction

INTRODUCTION REFLECTION AND REFRACTION AT BOUNDARIES. Introduction. Reflection and refraction at boundaries. Reflection at a single surface

1 Laboratory #4: Division-of-Wavefront Interference

Diffraction. Factors that affect Diffraction

Chapters 1-4: Summary

Chapter 35 &36 Physical Optics

Wave Phenomena Physics 15c. Lecture 19 Diffraction

Interference of Light

Temporary GroBoto v3 Documentation: Notes on Exporting Vertex Maps

EE795: Computer Vision and Intelligent Systems

Chapter 24. Wave Optics

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

UNIT 102-9: INTERFERENCE AND DIFFRACTION

INTERFERENCE. (i) When the film is quite thin as compared to the wavelength of light,

Chapter 8: Physical Optics

Thin Lenses 4/16/2018 1

Chapter 24. Wave Optics

Electricity & Optics

Aliasing. Can t draw smooth lines on discrete raster device get staircased lines ( jaggies ):

Interference of Light

Image Processing

Computer Graphics. Sampling Theory & Anti-Aliasing. Philipp Slusallek

Sampling, Aliasing, & Mipmaps

Image processing in frequency Domain

Michelson Interferometer

Original grey level r Fig.1

Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

Michael Moody School of Pharmacy University of London 29/39 Brunswick Square London WC1N 1AX, U.K.

Chapter 15. Light Waves

25 The vibration spiral

Chapter 36. Image Formation

Introduction to Digital Image Processing

College Physics 150. Chapter 25 Interference and Diffraction

Image Restoration and Reconstruction

mywbut.com Diffraction

PHYSICS. Chapter 34 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT

Diffraction at a single slit and double slit Measurement of the diameter of a hair

Lens Design I. Lecture 11: Imaging Herbert Gross. Summer term

Optics. a- Before the beginning of the nineteenth century, light was considered to be a stream of particles.

No Brain Too Small PHYSICS

Image restoration. Restoration: Enhancement:

Today: Interferometry, Diffraction

Conceptual Physics Fundamentals

Minimizing Noise and Bias in 3D DIC. Correlated Solutions, Inc.

Interference of Light

Lab 5: Diffraction and Interference

Image processing. Reading. What is an image? Brian Curless CSE 457 Spring 2017

34.2: Two Types of Image

Theoretically Perfect Sensor

Transcription:

An Intuitive Explanation of Fourier Theory Steven Lehar slehar@cns.bu.edu Fourier theory is pretty complicated mathematically. But there are some beautifully simple holistic concepts behind Fourier theory which are relatively easy to explain intuitively. There are other sites on the web that can give you the mathematical formulation of the. I will present only the basic intuitive insights here, as applied to spatial imagery. Basic Principles: How space is represented by frequency Higher Harmonics: "Ringing" effects An Analog Analogy: The Optical Fourier Transform Fourier Filtering: Image Processing using Fourier Transforms Basic Principles Fourier theory states that any signal, in our case visual images, can be expressed as a sum of a series of sinusoids. In the case of imagery, these are sinusoidal variations in brightness across the image. For example the sinusoidal pattern shown below can be captured in a single Fouier term that encodes 1: the spatial frequency, 2: the magnitude (positive or negative), and 3: the phase. These three values capture all of the information in the sinusoidal image. The spatial frequency is the frequency across space (the x-axis in this case) with which the brightness modulates. For example the image below shows another sinusoid with a higher spatial frequency. The magnitude of the sinusoid corresponds to its contrast, or the difference between the darkest and brightest viperold.york.ac.uk/ /fourier.html 1/9

peaks of the image. A negative magnitude represents a contrast-reversal, i.e. the brights become dark, and vice-versa. The phase represents how the wave is shifted relative to the origin, in this case it represents how much the sinusoid is shifted left or right. A encodes not just a single sinusoid, but a whole series of sinusoids through a range of spatial frequencies from zero (i.e. no modulation, i.e. the average brightness of the whole image) all the way up to the "nyquist frequency", i.e. the highest spatial frequency that can be encoded in the digital image, which is related to the resolution, or size of the pixels. The encodes all of the spatial frequencies present in an image simultaneously as follows. A signal containing only a single spatial frequency of frequency f is plotted as a single peak at point f along the spatial frequency axis, the height of that peak corresponding to the amplitude, or contrast of that sinusoidal signal. There is also a "DC term" corresponding to zero frequency, that represents the average brightness across the whole image. A zero DC term would mean an image with average brightness of zero, which would mean the sinusoid alternated between positive and negative values in the brightness image. But since there is no such thing as a negative brightness, all real images have a positive DC term, as shown here too. Actually, for mathematical reasons beyond the scope of this tutorial, the also plots a mirrorimage of the spatial frequency plot reflected across the origin, with spatial frequency increasing in both directions from the origin. For mathematical reasons beyond the scope of this explanation, these two plots are always mirror-image reflections of each other, with identical peaks at f and -f as shown below. What I have shown is actually the of a single scan line of the sinusoidal image, which is a one-dimensional signal. A full two-dimensional performs a 1-D transform on every scanline or row of the image, and another 1-D transform on every column of the image, producing a 2-D Fourier transform of the same size as the original image. The image below shows a sinusoidal brightness image, and its two-dimensional, presented here also as a brightness image. Every pixel of the Fourier image is a spatial frequency value, the magnitude of that value is encoded by the brightness of the pixel. In this case there is a bright pixel at the very center - this viperold.york.ac.uk/ /fourier.html 2/9

is the DC term, flanked by two bright pixels either side of the center, that encode the sinusoidal pattern. The brighter the peaks in the Fourier image, the higher the contrast in the brightness image. Since there is only one Fourier component in this simple image, all other values in the Fourier image are zero, depicted as black. Here is another sinusoidal brightness image, this time with a lower spatial frequency, together with it's twodimensional showing three peaks as before, except this time the peaks representing the sinusoid are closer to the central DC term, indicating a lower spatial frequency. The significant point is that the Fourier image encodes exactly the same information as the brightness image, except expressed in terms of amplitude as a function of spatial frequency, rather than brightness as a function of spatial displacement. An inverse of the Fourier image produces an exact pixel-for-pixel replica of the original brightness image. The orientation of the sinusoid correlates with the orientation of the peaks in the Fourier image relative to the central DC point. In this case a tilted sinusoidal pattern creates a tilted pair of peaks in the Fourier image. Different Fourier coefficients combine additively to produce combination patterns. For example the sinusoidal image shown below is computed as the sum of the tilted sinusoid shown above, and the vertical sinusoid of lower spatial frequency shown above that. viperold.york.ac.uk/ /fourier.html 3/9

The brightness and the Fourier images are completely interchangable, because they contain exactly the same information. The combined brightness image shown above could have been produced by a pixel-for-pixel adding of the two brightness images, or by a pixel-for-pixel addition of the corresponding s, followed by an inverse transform to go back to the brightness domain. Either way the result would be exactly identical. Back to top Higher Harmonics and "Ringing" effects The basis set for the is the smooth sinusoidal function, which is optimized for expressing smooth rounded shapes. But the can actually represent any shape, even harsh rectilinear shapes with sharp boundaries, which are the most difficult to express in the Fourier code, because they need so many higher order terms, or higher harmonics. How these "square wave" functions are expressed as smooth sinusoids will be demonstrated by example. The figure below shows four sinusoidal brightness images of spatial frequency 1, 3, 5, and 7. The first one, of frequency 1, is the fundamental, and the others are higher harmonics on that fundamental, because they are integer multiples of the fundamental frequency. These are in fact the "odd harmonics" on the fundamental, and each one exhibits a bright vertical band through the center of the image. The for each of these patterns is shown below. 1 3 5 7 The next table shows the result of progressively adding higher harmonics to the fundamental. Note how the central vertical band gets sharper and stronger with each additional higher harmonic, while the background drops down towards a uniform dark field. Note also how the higher harmonics produce peaks in the Fourier viperold.york.ac.uk/ /fourier.html 4/9

images that spread outward from the fundamental, defining a periodic pattern in frequency space. 1 1+3 1+3+5 1+3+5+7 The images below show what would happen if this process were continued all the way out to the Nyquist frequency - it would produce a thin vertical stripe in the brightness image, with sharp boundaries, i.e. a "square wave" in brightness along the x dimension. The of this image exhibits an "infinite" series of harmonics or higher order terms, although these do not actually go out to infinity due to the finite resolution of the original image. This is how the encodes sharp square-wave type features as the sum of a series of smooth sinusoids. Back to top The Optical Fourier Transform A great intuitive advance can be made in understanding the principles of the once you learn that a simple lens can perform a in real-time as follows. Place an image, for example a slide transparency, at the focal length of the lens, and illuminate that slide with coherent light, like a colimated laser beam. At the other focus of the lens place a frosted glass screen. Thats it! The lens will automatically perform a on the input image, and project it onto the frosted glass screen. For example if the input image is a sinusoidal grating, as shown below, the resultant Fourier image will have a bright spot at the center, the DC term, with two flanking peaks on either side, whose distance from the center will vary with the spatial frequency of the sinusoid. viperold.york.ac.uk/ /fourier.html 5/9

We can now see the holistic principle behind the. Every point on the input image radiates an expanding cone of rays towards the lens, but since the image is at the focus of the lens, those rays will be refracted into a parallel beam that illuminates the entire image at the ground-glass screen. In other words, every point of the input image is spread uniformly over the Fourier image, where constructive and destructive interference will automatically produce the proper Fourier representation. Conversely, parallel rays from the entire input image are focused onto the single central point of the Fourier image, where it defines the central DC term by the average brightness of the input image. Note that the optical er automatically operates in the reverse direction also, where it performs an inverse, converting the Fourier representation back into a spatial brightness image. Mathematically the forward and inverse transforms are identical except for a minus sign that reverses the direction of the computation. viperold.york.ac.uk/ /fourier.html 6/9

Back to top Fourier Filtering I will now show how the can be used to perform filtering operations to adjust the spatial frequency content of an image. We begin with an input image shown below, and perform a on it, then we do an inverse transform to reconstruct the original image. This reconstructed image is identical, pixel-for-pixel, with the original brightness image. Fourier Transform Inverse Transformed I will now demonstrate how we can manipulate the transformed image to adjust its spatial frequency content, and then perform an inverse transform to produce the Fourier filtered image. We begin with a low-pass filter, i.e. a filter that allows the low spatial-frequency components to pass through, but cuts off the high spatial frequencies. Since the low frequency components are found near the central DC point, all we have to do is define a radius around the DC point, and zero-out every point in the Fourier image that is beyond that radius. In other words the low-pass filtered transform is identical to the central portion of the, with the rest of the Fourier image set to zero. An inverse applied to this low-pass filtered image produces the inverse transformed image shown below. Low-Pass Filtered Inverse Transformed We see that the low-pass filtered image is blurred, preserving the low frequency broad smooth regions of dark and bright, but losing the sharp contours and crisp edges. Mathematically, low-pass filtering is equivalent to an optical blurring function. Next we try the converse, high-pass filtering, where we use the same spatial frequency threshold to define a radius in the Fourier image. All spatial frequency components that fall within that radius are eliminated, preserving only the higher spatial frequency components. After performing the inverse transform on this image we see the effect of high-pass filtering, which is to preserve all of the sharp crisp edges from the original, but it loses the larger regions of dark and bright. High-Pass Filtered Inverse Transformed viperold.york.ac.uk/ /fourier.html 7/9

If the low-pass filtered inverse-transformed image is added pixel-for-pixel to the high-pass inversetransformed image, this would exactly restore the original unfiltered image. These images are complementary therefore, each one encodes the information which is missing from the other. Next we will demonstrate a band-pass filtering that preserves only those spatial frequencies that fall within a band, greater than a low cut-off, but less than a higher cut-off. Band-Pass Filtered Inverse Transformed The next simulation is the same as above, except with a narrower band of spatial frequencies. Band-Pass Filtered Inverse Transformed The next simulation shows band-pass filtering about a higher spatial-frequency band, Band-Pass Filtered Inverse Transformed and finally the same as above except again using a narrower spatial-frequency band. Band-Pass Filtered Inverse Transformed viperold.york.ac.uk/ /fourier.html 8/9

These computer simulations demonstrate that the Fourier representation encodes image information in a holistic distributed manner that allows manipulation of the global information content of the image by spatial manipulations of the transformed image. Back to top viperold.york.ac.uk/ /fourier.html 9/9