PROCEEDINGS OF SPIE. Teaching the concept of convolution and correlation using Fourier transform

Similar documents
Visualization of polarization state and its application in Optics classroom teaching

Parallel fractional correlation: implementation

PROCEEDINGS OF SPIE. Optical circulator analysis and optimization: a mini-project for physical optics

Therefore the new Fourier coefficients are. Module 2 : Signals in Frequency Domain Problem Set 2. Problem 1

The Convolution Sum for Discrete-Time LTI Systems

Using a Mach-Zehnder interferometer to measure the phase retardations of wave plates

Spectroscopic Instruments

110 Digital Signal Processing in Experimental Research, 2009, 1, Computer-Generated Holograms and Optical Information Processing

PROCEEDINGS OF SPIE. FDTD method and models in optical education. Xiaogang Lin, Nan Wan, Lingdong Weng, Hao Zhu, Jihe Du

ALL-OPTICAL APPROACH FOR CONVERSION OF A BINARY NUMBER HAVING A FRACTIONAL PART TO ITS DECIMAL EQUIVALENT AND VICE-VERSA

PROCEEDINGS OF SPIE. Optical phase measurement emphasized

PROCEEDINGS OF SPIE. Photonic simulation software tools for education

Where are the Fringes? (in a real system) Div. of Amplitude - Wedged Plates. Fringe Localisation Double Slit. Fringe Localisation Grating

Properties of LTI Systems

SUPPLEMENTARY INFORMATION

Density Field Measurement by Digital Laser Speckle Photography

Complex data mapping on a binary ferroelectric liquid crystal electrically addressed spatial light modulator for target recognition

Phys 531 Lecture 27 6 December 2005

Module 3 : Sampling and Reconstruction Lecture 22 : Sampling and Reconstruction of Band-Limited Signals

Nature of Light Part 2

Particle-Wave Duality and Which-Way Information

The spatial frequency domain

A Digital Holographic Approach for Co-Phasing of Segmented Telescopes: Proof of Concept Using Numerical Simulations

MIT 2.71/2.710 Optics 10/31/05 wk9-a-1. The spatial frequency domain

Spatial phase-shifting moiré tomography

EE 224 Signals and Systems I Review 1/10

Optics, Optoelectronics and Photonics

Professor Fearing EECS120/Problem Set 2 v 1.01 Fall 2016 Due at 4 pm, Fri. Sep. 9 in HW box under stairs (1st floor Cory) Reading: O&W Ch 1, Ch2.

Digital Signal Processing Lecture 4

Course Syllabus. OSE6211 Imaging & Optical Systems, 3 Cr. Instructor: Bahaa Saleh Term: Fall 2017

CH.3 Continuous-Time Linear Time-Invariant System

FIG. 16: A Mach Zehnder interferometer consists of two symmetric beam splitters BS1 and BS2

Metrology and Sensing

Arbitrary and reconfigurable optics - new opportunities for integrated photonics

Fourier Analysis Overview (0B)

A novel laser guide star: Projected Pupil Plane Pattern

1 N star coupler as a distributed fiber-optic strain sensor in a white-light interferometer

On-axis joint transform correlation based on a four-level power spectrum

Efficient mode transformations of degenerate Laguerre Gaussian beams

A beam of coherent monochromatic light from a distant galaxy is used in an optics experiment on Earth.

Visualization of Convective Structures by Methods of the Hilbert Optics and Phase-Shift Interferometry

ESS Finite Impulse Response Filters and the Z-transform

Lecture 1: Introduction Introduction

Complex refractive-index measurement based on Fresnel s equations and the uses of heterodyne interferometry

Optics.

PRINCIPLES OF PHYSICAL OPTICS

Chapter 8 Analog Optical Information Processing

Today. MIT 2.71/2.710 Optics 11/10/04 wk10-b-1

1 otherwise. Note that the area of the pulse is one. The Dirac delta function (a.k.a. the impulse) can be defined using the pulse as follows:

Analog vs. discrete signals

PROCEEDINGS OF SPIE. Shedding the light on spectrophotometry: the SpecUP educational spectrophotometer

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

A Fabry-Perot Interferometer System for high-speed velocity measurement. Lun K. Cheng, A.J.A. Bruinsma, W.C. Prinse* and C.

Experimental generating the partially coherent and partially polarized electromagnetic source

Analysis of the signal fall-off in spectral domain optical coherence tomography systems

E : Lecture 1 Introduction

Solution 10 July 2015 ECE301 Signals and Systems: Midterm. Cover Sheet

Engineering Physics 1 Prof. G.D. Varma Department of Physics Indian Institute of Technology-Roorkee

Digital Holographic Measurement of Nanometric Optical Excitation on Soft Matter by Optical Pressure and Photothermal Interactions

Probing the orbital angular momentum of light with a multipoint interferometer

Review of Analog Signal Analysis

Chapter 10. Interference of Light

Signals and Systems Chapter 2

ABSTRACT 1. INTRODUCTION

PANDA ring resonator for optical Gas and Pressure sensing applications

Optical Sciences Center, Rm 704 University of Arizona Tucson, AZ Office Hours: Call for appointment or see after class

PROCEEDINGS OF SPIE. Advanced laboratory exercise: studying the dispersion properties of a prism pair

TITLE: Interferometry: The Michelson Interferometer

Introduction to DFT. Deployment of Telecommunication Infrastructures. Azadeh Faridi DTIC UPF, Spring 2009

Interference. Reminder: Exam 2 and Review quiz, more details on the course website

Lecture 1 January 5, 2016

PROCEEDINGS OF SPIE. Modulation of visualized electrical field. Chin-Jung Chuang, Chi-Chung Wu, Yi-Ting Wang, Shiuan-Hau Huang

INTERFEROMETRIC METHOD FOR THE STUDY OF SPATIAL PHASE MODULATION INDUCED BY LIGHT IN DYE-DOPED DNA COMPLEXES

Lecture 27 Frequency Response 2

Modeling liquid-crystal devices with the three-dimensional full-vector beam propagation method

Cosc 3451 Signals and Systems. What is a system? Systems Terminology and Properties of Systems

Constructive vs. destructive interference; Coherent vs. incoherent interference

The Fractional Fourier Transform with Applications in Optics and Signal Processing

CONVOLUTION & PRODUCT THEOREMS FOR FRFT CHAPTER INTRODUCTION [45]

Phase-conjugation of high power molecular C02 and CO lasers radiation inside their active medium

2.71. Final examination. 3 hours (9am 12 noon) Total pages: 7 (seven) PLEASE DO NOT TURN OVER UNTIL EXAM STARTS PLEASE RETURN THIS BOOKLET

Wavefront aberration analysis with a multi-order diffractive optical element

Preview from Notesale.co.uk Page 1 of 38

Modeling of the fringe shift in multiple beam interference for glass fibers

Light Propagation in Free Space

Optimal design of 2-Bit Optical Magnitude Comparator using electro-optic effect inside Mach-Zehnder interferometers

Discussion Section #2, 31 Jan 2014

Lecture 11 FIR Filters

White light generation and amplification using a soliton pulse within a nano-waveguide

One Atomic Beam as a Detector of Classical Harmonic Vibrations with Micro Amplitudes and Low Frequencies. Yong-Yi Huang

Wavelength switchable flat-top all-fiber comb filter based on a double-loop Mach-Zehnder interferometer

4: Fourier Optics. Lecture 4 Outline. ECE 4606 Undergraduate Optics Lab. Robert R. McLeod, University of Colorado

Designing of All Optical Two Bits Full Adder using TOAD, TMIN and Feynman Gate

Chapter (5) Matter Waves

Jones Matrix Imaging for Transparent and Anisotropic Sample

A COMPACT POLARIZATION BEAM SPLITTER BASED ON A MULTIMODE PHOTONIC CRYSTAL WAVEGUIDE WITH AN INTERNAL PHOTONIC CRYSTAL SECTION

Review of Frequency Domain Fourier Series: Continuous periodic frequency components

Topic 3: Fourier Series (FS)

Experiment 3 1. The Michelson Interferometer and the He- Ne Laser Physics 2150 Experiment No. 3 University of Colorado

1. Waves and Particles 2. Interference of Waves 3. Wave Nature of Light

Transcription:

PROCEEDINGS OF SPIE SPIEDigitalLibrary.org/conference-proceedings-of-spie Teaching the concept of convolution and correlation using Fourier transform Debesh Choudhury Debesh Choudhury, "Teaching the concept of convolution and correlation using Fourier transform," Proc. SPIE 10452, 14th Conference on Education and Training in Optics and Photonics: ETOP 2017, 104520Y (16 August 2017); doi: 10.1117/12.2267976 Event: 14th Conference on Education and Training in Optics and Photonics, ETOP 2017, 2017, Hangzhou, China

Teaching the concept of convolution and correlation using Fourier transform Debesh Choudhury Adamas University, Department of Electronics and Communication Engineering Barasat-Barrackpore Road, PO - Jagannathpur Pin - 700126, West Bengal, India ABSTRACT Convolution operation is indispensable in studying analog optical and digital signal processing. Equally important is the correlation operation. The time domain community often teaches convolution and correlation only with one dimensional time signals. That does not clearly demonstrate the effect of convolution and correlation between two signals. Instead if we consider two dimensional spatial signals, the convolution and correlation operations can be very clearly explained. In this paper, we propose a lecture demonstration of convolution and correlation between two spatial signals using the Fourier transform tool. Both simulation and optical experiments are possible using a variety of object transparencies. The demonstration experiments help to clearly explain the similarity and the difference between convolution and correlation operations. This method of teaching using simulation and hands-on experiments can stimulate the curiosity of the students. The feedback of the students, in my class teaching, has been quite encouraging. Keywords: Convolution, correlation, Fourier transform, optical and digital signal processing 1. MOTIVATION In the under graduate programs of electrical, electronics and communication engineering, convolution and correlation are taught in many courses, such as signals and systems, digital signal processing and communication theory. The electronics or the time domain community treat the subject of convolution and correlation mainly with respect to one-dimensional time domain signals. On the other hand, the optics and photonics community teach convolution and correlation with respect to two-dimensional spatial signals. It is observed that the subject can be better appreciated if examples from two-dimensional spatial signals are considered. 2. INTRODUCTION Convolution is a mathematical method of combining two signals to form a third signal. The characteristics of a linear system is completely specified by the impulse response of the system and the mathematics of convolution. 1 It is well-known that the output of a linear time (or space) invariant system can be expressed as a convolution between the input signal and the system impulse response function. Convolution is the basis for many signal processing techniques. As for example digital filters are synthesized by designing appropriate impulse response functions. Targets are detected on the radar by analyzing the measured impulse responses. In long distance telephone communication, echo suppression is achieved by creating impulse responses those cancel out the impulse responses of the reverberation signal. Correlation is a simple mathematical operation to compare two signals. Correlation is also a convolution operation between two signals. But there is a basic difference. Correlation of two signals is the convolution between one signal with the functional inverse version of the other signal. The resultant signal is called the cross-correlation of the two input signals. The amplitude of cross-correlation signal is a measure of how much the received signal resembles the target signal. The correlation peak specifies the location of the target. Further author information: E-mail: debesh@ieee.org, Tel: +91-9831369809 14th Conference on Education and Training in Optics and Photonics: ETOP 2017, edited by Xu Liu, Xi-Cheng Zhang, Proc. of SPIE Vol. 10452, 104520Y 2017 ICO, IEEE, OSA, SPIE CCC code: 0277-786X/17/$18 doi: 10.1117/12.2267976 Proc. of SPIE Vol. 10452 104520Y-1

Correlation operation is regulalrly done in radar communication. 1 Vander Lugt evolved with a novel way of optical character recognition by optical matched filtering what he called complex spatial filtering. 2 Goodman and Weaver demonstrated how to optically convolve two spatial signals by joint Fourier transformation. 3 The joint Fourier transform method forms the basis for optical implementation of cross-correlation between two signals, which is popularly known as joint-transfrom correlation. 4 It is worth noting that both convolution and correlation operation can be realized by applying Fourier transform. Thus, it is appropriate to explain the similarity and difference of convolution and correlation using Fourier transform. In this paper, we present a teaching method for understanding the concept of convolution and correlation using the Fourier transform tool. 3. MATHEMATICAL EXPRESSIONS OF CONVOLUTION AND CORRELATION The mathematical expression defining a convolution between two continuous time signals x(t) and h(t) is given by 4 where represents convolution operation. convolution sum given by y(t) = x(t) h(t) = + x(τ)h(t τ)dτ (1) For discrete time signals x[t] and h[t], it can be expressed as a y[n] = k=+ k= x[k]h[n k] (2) Equations (1) and (2) also give the output of a linear time invariant system where h(t) / h[t] is the system impulse response of the continuous / discrete linear time invariant system. x(t) x[t] h(t) h[t] y(t) y[t] Figure 1. Linear time invariant system. The correlation between the same two signals may be expressed as c(t) = x(t) h(t) = + x(τ)h(τ t)dτ = x(t) h( t) (3) where represents correlation operation. For discrete time signals x[t] and h[t], it can be expressed as 1 c[n] = k=+ k= x[k]h[k n] (4) Convolution and correlation are similar mathematical operations. Correlation is also a convolution operation between the two signals but one of the signals is the functional inverse. So, in correlation process one of the signals is rotated by 180 degree. This is the basic difference between convolution and correlation. It is interesting to note that convolution and correlation can produce identical results if the signals are rotationally symmetric. Proc. of SPIE Vol. 10452 104520Y-2

4. 2D EXAMPLES OF CONVOLUTION The time domain community treats it mostly with 1D signals. It is observed that the concept can t be appreciated easily using 1D signals. If we take examples of 2D signals, we can show the results pretty simple and the concept is easily understandable by the students. We use the convolution theorem of Fourier transform. This states that the Fourier transform of a product of two signals is the convolution of the respective Fourier transforms. The vice versa is also true. Let us take two sinusoidal 2D gratings. First we add the gratings and take Fourier transform. If g 1 (x, y) and g 2 (x, y) be the amplitude transmittance of the two gratings, then we can write FT [g 1 (x, y) + g 2 (x, y)] = FT [g 1 (x, y)] + FT [g 2 (x, y)] (5) where FT is a Fourier transform operator. We created 2D sinusoidal gratings, the algebraic addition of the gratings and their Fourier transforms using open source GNU Octave. 5 The results are shown in Fig.2. It is P Ȯ *i... O n... i!..... u (a) (b) (c) (d) Figure 2. Image of (a) first grating; (b) second grating; (c) addition of (a) and (b); (d) FT of (c). evident from Fig.2 that the Fourier transform of the addition signal is just the addition of the Fourier transforms of the individual gratings. Now let us multiply the amplitude of the gratings and carry out Fourier transform on the product signal. It is equivalent to FT [g 1 (x, y)g 2 (x, y)] = FT [g 1 (x, y)] FT [g 2 (x, y)] (6) and the simulation results of this operation is displayed in Fig.3. The addition signal of Fig.2(c) and the product O S :FA rsi} tit irr (a) (b) (c) (d) Figure 3. Image of (a) first grating; (b) second grating; (c) product of (a) and (b); (d) FT of (c). signal of Fig.3(c) are different although they are almost similar in appearance. That is why the Fourier transform intensity displayed in Fig.2(d) and Fig.3(d) are different. There are five bright dots in Fig.2(d) whereas there are nine bright dots in Fig.3(d). The cross terms (bright dots) in Fig.3(d) are due to the convolution between the Fourier transforms of the two grating functions. 4.1 Optical demonstration of convolution The above examples can be demonstrated using optical experiments. The example of equation (5) can be optically implemented using a Mach-Zehnder interferometric arrangement as shown in Fig.4. The two grating transparencies are placed inside the two arms of the interferometer such that they are equidistant from the second beam-splitter. The converging lens acts as a 2D Fourier transforming element which produces the Fourier transform of the amplitude distribution at the output plane. Proc. of SPIE Vol. 10452 104520Y-3

Grating 1 Grating 2 Figure 4. Mach-Zehnder interferometric arrangement for amplitude addition and Fourier transform. Grating 1 Grating 2 Figure 5. Optical Fourier transform of product of two grating amplitude transmittance by a converging lens. The convolution theorem of Fourier transform can be optically demonstrated using the simple arrangement of optical Fourier transformation by a converging lens as shown in Fig.5. The effect of equation (6) can be yielded by placing the grating transparencies in contact with each other at the front focal plane of the in Fig.5. That is equivalent to multiplying the amplitude transmittance functions of the two gratings. Fourier transformation by the produces the convolution of the Fourier transforms of the grating transmittance functions at the back focal plane which is the output plane. 4.2 Abbe-Porter experiment and spatial filtering The well-known Abbe-Porter experiment is also portrayed as a demonstrative experiment of convolution theorem of Fourier transform. 4 In this classical experiment, the superposition of all the spatial frequency content of an input 2D image is recombined after a Fourier transform opreation. The 4f Fourier optical set-up with two identical serves the purpose. The students can play with such a system to understand the role of free- Grating 1 Grating 2 Figure 6. 4f Fourier optical set-up to demonstrate Abbe-Porter experiment. Image plane Proc. of SPIE Vol. 10452 104520Y-4

space propagation and Fourier transform in imaging. Different slits can be placed at the to study the effect of spatial frequency filtering. This can immensely help to improve the understanding of convolution theorem of Fourier transform. 5. 2D EXAMPLES OF CORRELATION Correlation operation is handy to measure similarity between two signals. Let us take two random screens and inspect the correlation between them. We generate images of two random screens using GNU Octave as shown in Fig.7. The cross-correlation between the images of two random screens will also produce a random image, because the two random images have no correlation. This is shown in Fig.7(c). If the two random screens are (a) (b) (c)) Figure 7. Image of (a) first random screen; (b) second random screen; (c) cross-correlation between (a) and (b). same, i.e., identical, then the images of the random screens are correlated to yield sharp correlation peak. This is equaivalent to cross-correlation with itself which is called auto-correlation. This result is shown in Fig.8. The presence of a sharp bright dot in Fig.8(c) is the evidence of high correlation between Fig.8(a) and (b). (a) (b) (c)) Figure 8. Image of (a) first random screen; (b) identical random screen; (c) cross-correlation between (a) and (b). 5.1 Optical correlation The Fourier transforming property of converging lens helps implementing correlation operation optically. The Vander Lugt correlation and joint-transform correlation can be explained using both simulation and experiments. The students can be given mini projects on optical correlation. The recording of a joint Fourier transform can be done using a schematic set-up similar to Fig.9. The object and the target optical transparencies are placed side by side at the front focal plane of a. The joint Fourier transform intensity is recorded at the FT Object Target Figure 9. Joint-transform correlation recording set-up. Proc. of SPIE Vol. 10452 104520Y-5

JTC record Figure 10. Joint-transform correlation replay set-up. plane either on a photographic plate or on a digital camera sensor. For the replay, the photographic record is placed at the front focal plane and the cross-correlation output is obtained at the as shown in Fig.10. If it is a recording on a digital camera, then the recorded image of the joint Fourier transform can be displayed on a electrically addressed spatial light modulator and joint-transform correlation can be obtained by the same set-up.. The Vander Lugt filter is nothing but a Fourier transform hologram of the target to be correlated. We can simulate a recording of a Vander Lugt filter by recording the Fourier transform of the reference target transparency along with a coherent plane reference wave. The Fourier transform of the object trapsparency is multiplied with the recorded Vander Lught filter and another Fourier transformation produces the correlation result. We can see correlation peaks at the location of the matched targets. All these exercises can be assigned to the students as mini projects which can be carried out using GNU Octave. 6. CONCLUSION In this paper we have presented a teaching method to explain convolution and correlation. It is noticed that convolution can be better explained with 2D signals instead of 1D signals. Utilization of interferometric system for producing an addition and product of two signals can help to demonstrate the convolution theorem of Fourier transform. The difference of correlation with convolution can be made clear by demostrating cross-correlation operation by Vander Lugt and joint-transform correlation. Simulation platform such as GNU Octave can be utilized to demonstrate the principles. These exercises can help the students to appreciate and understand the concepts of convolution and correlation more intuitively. REFERENCES [1] Smith, S. W., [The Scientist and Engineer s Guide to Digital Signal Processing], California Technical Publishing, (1999). [2] Vander Lugt, A. B., Signal detection by complex spatial filtering, IEEE Trans. Info. Theory IT-10, 139-145 (1964). [3] Weaver, C. J. and Goodman, J. W., A technique for optically convolving two functions, Appl. Opt. 5, 1248-1249 (1966). [4] Goodman, J. W., [Introduction to Fourier Optics, Third Edition], (Roberts & Company, (2005). [5] GNU Octave A high-level interactive language for numerical computations, http://www.octave.org/ Proc. of SPIE Vol. 10452 104520Y-6