Summary of Lecture 7

Similar documents
Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Digital Signal Processing

IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 50, NO. 12, DECEMBER

Performance Analysis of FIR Digital Filter Design Technique and Implementation

Understanding Digital Signal Processing

Narrow-Band Low-Pass Digital Differentiator Design. Ivan Selesnick Polytechnic University Brooklyn, New York

ECE Digital Signal Processing

Two-Dimensional Wavelets with Complementary Filter Banks

Digital Image Processing. Image Enhancement: Filtering in the Frequency Domain

Lab 4 Digital Scope and Spectrum Analyzer

Audio Signal Compression using DCT and LPC Techniques

Discrete Fourier Transform, DFT Input: N time samples

MULTIRATE DIGITAL SIGNAL PROCESSING

Keywords Fuzzy Logic, ANN, Histogram Equalization, Spatial Averaging, High Boost filtering, MSE, RMSE, SNR, PSNR.

Biosignal filtering and artifact rejection. Biosignal processing, S Autumn 2012

Advanced 3G & 4G Wireless Communication Prof. Aditya K. Jaganathan Department of Electrical Engineering Indian Institute of Technology, Kanpur

Image Denoising with Linear and Non-Linear Filters: A REVIEW

Chapter 4 SPEECH ENHANCEMENT

Wavelet Transform. From C. Valens article, A Really Friendly Guide to Wavelets, 1999

Speech Enhancement: Reduction of Additive Noise in the Digital Processing of Speech

Image Deblurring. This chapter describes how to deblur an image using the toolbox deblurring functions.

Lecture 20: Mitigation Techniques for Multipath Fading Effects

International Journal of Digital Application & Contemporary research Website: (Volume 1, Issue 7, February 2013)

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

Computer Vision, Lecture 3

One-Dimensional FFTs. Figure 6.19a shows z(t), a continuous cosine wave with a period of T 0. . Its Fourier transform, Z(f) is two impulses, at 1/T 0

Fixed Point Lms Adaptive Filter Using Partial Product Generator

A DEVELOPED UNSHARP MASKING METHOD FOR IMAGES CONTRAST ENHANCEMENT

Noureddine Mansour Department of Chemical Engineering, College of Engineering, University of Bahrain, POBox 32038, Bahrain

FOURIER analysis is a well-known method for nonparametric

8. Lecture. Image restoration: Fourier domain

Laboratory Assignment 4. Fourier Sound Synthesis

An Approximation Algorithm for Computing the Mean Square Error Between Two High Range Resolution RADAR Profiles

Quantized Coefficient F.I.R. Filter for the Design of Filter Bank

EE 6422 Adaptive Signal Processing

Sampling Theory. CS5625 Lecture Steve Marschner. Cornell CS5625 Spring 2016 Lecture 7

Digital Signal Processing

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

MODIFIED DCT BASED SPEECH ENHANCEMENT IN VEHICULAR ENVIRONMENTS

IDENTIFICATION OF SIGNATURES TRANSMITTED OVER RAYLEIGH FADING CHANNEL BY USING HMM AND RLE

arxiv: v1 [physics.data-an] 9 Jan 2008

Introduction to Wavelet Transform. Chapter 7 Instructor: Hossein Pourghassem

Real-time digital signal recovery for a multi-pole low-pass transfer function system

Digital Signal Processing

Filtering in the spatial domain (Spatial Filtering)

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

Assistant Lecturer Sama S. Samaan

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.

Reduction in sidelobe and SNR improves by using Digital Pulse Compression Technique

Performance Analysis of gradient decent adaptive filters for noise cancellation in Signal Processing

CG401 Advanced Signal Processing. Dr Stuart Lawson Room A330 Tel: January 2003

Digital Signal Processing Fourier Analysis of Continuous-Time Signals with the Discrete Fourier Transform

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

International Journal of Scientific & Engineering Research Volume 9, Issue 3, March ISSN

Part One. Efficient Digital Filters COPYRIGHTED MATERIAL

The Fourier Transform

Lecture 17 z-transforms 2

Lesson 7. Digital Signal Processors

Speech Enhancement Based On Noise Reduction

Subband coring for image noise reduction. Edward H. Adelson Internal Report, RCA David Sarnoff Research Center, Nov

Digital Image Processing 3/e

Detiding DART R Buoy Data and Extraction of Source Coefficients: A Joint Method. Don Percival

Teaching Plan - Dr Kavita Thakur

AC : FIR FILTERS FOR TECHNOLOGISTS, SCIENTISTS, AND OTHER NON-PH.D.S

Lecture #10. EECS490: Digital Image Processing

IN many applications, such as system filtering and target

Teaching Scheme. Credits Assigned (hrs/week) Theory Practical Tutorial Theory Oral & Tutorial Total

Using the DFT as a Filter: Correcting a Misconception by Richard G. Lyons

Fundamentals of Time- and Frequency-Domain Analysis of Signal-Averaged Electrocardiograms R. Martin Arthur, PhD

Measurement System for Acoustic Absorption Using the Cepstrum Technique. Abstract. 1. Introduction

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

Fourier Theory & Practice, Part I: Theory (HP Product Note )

Digital Signal Processing

Lecture 3 Complex Exponential Signals

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi

MITIGATING INTERFERENCE TO GPS OPERATION USING VARIABLE FORGETTING FACTOR BASED RECURSIVE LEAST SQUARES ESTIMATION

Overview. M. Xiao CommTh/EES/KTH. Wednesday, Feb. 17, :00-12:00, B23

Discrete-time Signals & Systems

SGN Advanced Signal Processing

Advanced 3G & 4G Wireless Communication Prof. Aditya K. Jagannatham Department of Electrical Engineering Indian Institute of Technology, Kanpur

Signal Processing for Speech Applications - Part 2-1. Signal Processing For Speech Applications - Part 2

Examples of image processing

Frequency Domain Enhancement

Midterm Review. Image Processing CSE 166 Lecture 10

Architecture design for Adaptive Noise Cancellation

G(f ) = g(t) dt. e i2πft. = cos(2πf t) + i sin(2πf t)

Study of Different Adaptive Filter Algorithms for Noise Cancellation in Real-Time Environment

Vector Arithmetic Logic Unit Amit Kumar Dutta JIS College of Engineering, Kalyani, WB, India

speech signal S(n). This involves a transformation of S(n) into another signal or a set of signals

Analysis and Design of Vector Error Diffusion Systems for Image Halftoning

Efficient Parallel Real-Time Upsampling with Xilinx FPGAs

Improvement in DCT and DWT Image Compression Techniques Using Filters

CS4495/6495 Introduction to Computer Vision. 2C-L3 Aliasing

A Comparison of Two Computational Technologies for Digital Pulse Compression

EE123 Digital Signal Processing

Sampling and Reconstruction

Simulink Modelling of Reed-Solomon (Rs) Code for Error Detection and Correction

Proceedings of Meetings on Acoustics

Enhancement of Speech Signal by Adaptation of Scales and Thresholds of Bionic Wavelet Transform Coefficients

Image analysis. CS/CME/BioE/Biophys/BMI 279 Oct. 31 and Nov. 2, 2017 Ron Dror

Transcription:

Summary of Lecture 7 In lecture 7 we learnt the 2-D DFT of two dimensional finite extent sequences. We learnt how to calculate convolutions using DFTs. We learnt about basic properties of the DFTs of natural images. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 1

2-D DFT and Convolution The DFT can be computed with a fast algorithm and it is sometimes beneficial to do the convolution of two sequences A (M 1 N 1 ) and B (M 2 N 2 ) via [M 1 + M 2 + 1, N 1 + N 2 + 1] point DFTs. Speed improvements are only possible if both sequences have large dimensions. Otherwise convolutions are better implemented via the convolution sum. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 2

DFTs of Natural Images c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 3

2-D Low-Pass Filtering of Images We will be interested in two ways of implementing low-pass filtering for images: By defining windows in the DFT domain, selecting low frequency DFT coefficients of images and inverse transforming. By defining low-pass filters in spatial domain and obtaining filtered images by the convolution sum. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 4

Low-Pass Filtering by DFT windows w for W 1 = W 2 = 100 (normalized and fftshifted) c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 5

Low-Pass Filtering in Spatial Domain Low pass filtering operations in spatial domain can be thought of as local averaging operations. Let L(m, n) = Consider C = L A where A is an image. C(m, n) = = + 1 (2W +1) 2 W m, n W 0 otherwise + k= l= 1 (2W + 1) 2 A(m k, n l)l(k, l) W W k= W l= W A(m k, n l) (1) This is a local average if W is much smaller than the dimensions of A. For W = 1 Equation 1 becomes: C(m, n) = 1 (A(m 1, n 1) + A(m 1, n) + A(m 1, n + 1) 9 + A(m, n 1) + A(m, n) + A(m, n + 1) + A(m + 1, n 1) + A(m + 1, n) + A(m + 1, n + 1)) Note that L becomes more and more low-pass as we increase W. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 6

Example c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 7

Low-Pass Filtering in Spatial Domain Given the size 2W + 1 of the filter L, one can design low-pass filters that implement more complicated forms of averaging using signal processing and statistical signal processing concepts. In this class, we will mainly concentrate on simple filters and not go through detailed filter design techniques. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 8

2-D High-Pass Filtering of Images The high-pass filtered image can be thought of as the original image minus the low pass filtered image. High-pass filtering by DFT windows: If w(k, l) (W 1 W 2 ) is a low-pass DFT window, simply define a high-pass window h(k, l) by h(k, l) = 1 w(k, l). High-pass filtering in spatial domain: If L is a low-pass filter of size W, simply define a high-pass filter H via H(m, n) = δ(m, n) L(m, n). c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 9

High-Pass Filtering by DFT windows c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 10

Spatial High-Pass Filtering c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 11

2-D Band-Pass Filtering of Images The band-pass filtered image can be thought of as one low-pass filtered image minus another low pass filtered image: Band-pass filtering by DFT windows: If w 1 (k, l) (W 1 W 2 ) and w 2 (k, l) (W 1 + O1 W 2 + O2) are lowpass DFT windows, simply define a band-pass window b(k, l) by b(k, l) = w 2 (k, l) w 1 (k, l). Band-pass filtering in spatial domain: If L 1 (size W) and L 2 (size W + O) are low-pass filters with L 2 being lower-pass, simply define a band-pass filter B via B(m, n) = L 1 (m, n) L 2 (m, n). c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 12

Band-Pass Filtering by DFT windows c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 13

Spatial Band-Pass Filtering c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 14

Filtering Convention Note that when A is (M 1 N 1 ), C = L A is (M 1 + W 1 N 1 + W 1). In general, we would like to keep C the same size as A. Thus we crop a suitable portion of C and consider that as the low-pass filtered image. For the filters we have discussed, a good cropping region is m = 0,..., M 1 1, etc. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 15

Sampling and Antialiasing Filters c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 16

Sampling Without Antialiasing Filters c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 17

Sampling With Antialiasing Filters c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 18

Noise Removal Consider the scenario where an image A is corrupted with additive noise to yield an image B: B = A + N (2) c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 19

Noise Removal in DFT domain We already know that natural images have dominant low frequency DFT coefficients. Intuitively, we can make the following observations. Assuming noise is not accessive at low frequencies we expect: DF B (k, l) = DF A (k, l) + DF N (k, l) DF B (k, l) = DF A (k, l) (3) since DF A (k, l) is large at low frequencies. At high frequencies we expect: DF B (k, l) = DF A (k, l) + DF N (k, l) DF B (k, l) = DF N (k, l) (4) since DF A (k, l) is small at high frequencies. We can reduce the amount of noise in B by low-pass filtering. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 20

Noise Removal By Low-Pass Filtering Given noisy image, low-pass filter it to obtain C = B L or DF C (k, l) = DF B (k, l)w(k, l), where L is a low-pass filter and w(k, l) is a low-pass DFT window. In general, determining the parameters of the filters is difficult and is done by trial/error (say by judging the visual quality of C) or based on certain assumptions/models. For illustration purposes we will determine the best parameters for our filters based on the mean squared error between C and A. Note that this is not possible in practice as access to the original image is not possible. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 21

Noise Removal by DFT windows c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 22

Noise Removal by Spatial Low-Pass Filters c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 23

Summary In this lecture we learnt how to low-pass, high-pass and band-pass filter images in two different ways. We considered two filtering applications: Subsampling by low-pass antialiasing filters. Noise reduction/removal by low-pass filters c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 24

Homework VIII 1. Low-pass, band-pass and high-pass filter your image both spatially and with DFT windows. Use at least three different parameters for low, band and high pass filtering. Present your results as they have been presented in this lecture (see for e.g. pages 10 and 11). 2. Subsample your image by 4 and 8 in each direction, with and without antialiasing using low-pass DFT windows. Make sure you pick the correct parameters for the windows. (Hint: your images are not square). Show the parameters used as well as the resulting images. Comment on the results. 3. Do the noise reduction processing I did on pages 22 and 23. Start by adding noise to your image etc. (See above hint for low-pass DFT window parameters.) Present your results as they have been presented in this lecture. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 25

References [1] A. K. Jain, Fundamentals of Digital Image Processing. Englewood Cliffs, NJ: Prentice Hall, 1989. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 26