Linear Filtering Part II



Similar documents
Lectures 6&7: Image Enhancement

Digital Image Fundamentals. Selim Aksoy Department of Computer Engineering Bilkent University

Introduction. Selim Aksoy. Bilkent University

Correlation and Convolution Class Notes for CMSC 426, Fall 2005 David Jacobs

Admin stuff. 4 Image Pyramids. Spatial Domain. Projects. Fourier domain 2/26/2008. Fourier as a change of basis

Aliasing, Image Sampling and Reconstruction

Convolution, Correlation, & Fourier Transforms. James R. Graham 10/25/2005

Computational Foundations of Cognitive Science

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

Time series analysis Matlab tutorial. Joachim Gross

How To Understand The Nyquist Sampling Theorem

Introduction to Digital Audio

ECE 468 / CS 519 Digital Image Processing. Introduction

SIGNAL PROCESSING & SIMULATION NEWSLETTER

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

Introduction to Pattern Recognition


DIGITAL IMAGE PROCESSING AND ANALYSIS

Frequency Response of FIR Filters

Sampling and Interpolation. Yao Wang Polytechnic University, Brooklyn, NY11201

Imageprocessing. Errors of measurements

jorge s. marques image processing

Lecture 14. Point Spread Function (PSF)

Analysis/resynthesis with the short time Fourier transform

Sampling Theorem Notes. Recall: That a time sampled signal is like taking a snap shot or picture of signal periodically.

PYKC Jan Lecture 1 Slide 1

The continuous and discrete Fourier transforms

ANALYZER BASICS WHAT IS AN FFT SPECTRUM ANALYZER? 2-1

Specular reflection. Dielectrics and Distribution in Ray Tracing. Snell s Law. Ray tracing dielectrics

SGN-1158 Introduction to Signal Processing Test. Solutions

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

Analog Representations of Sound

Digital Imaging and Multimedia. Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Bildverarbeitung und Mustererkennung Image Processing and Pattern Recognition

5 Signal Design for Bandlimited Channels

Introduction to Medical Imaging. Lecture 11: Cone-Beam CT Theory. Introduction. Available cone-beam reconstruction methods: Our discussion:

The Fourier Analysis Tool in Microsoft Excel

Optical Metrology. Third Edition. Kjell J. Gasvik Spectra Vision AS, Trondheim, Norway JOHN WILEY & SONS, LTD

Advanced Signal Processing and Digital Noise Reduction

Digital Image Processing

Sachin Patel HOD I.T Department PCST, Indore, India. Parth Bhatt I.T Department, PCST, Indore, India. Ankit Shah CSE Department, KITE, Jaipur, India

521466S Machine Vision Assignment #7 Hough transform

Computational Optical Imaging - Optique Numerique. -- Deconvolution --

Sharpening through spatial filtering

Lecture 8 ELE 301: Signals and Systems

SIGNAL PROCESSING FOR EFFECTIVE VIBRATION ANALYSIS

Convolution. 1D Formula: 2D Formula: Example on the web:

SWISS ARMY KNIFE INDICATOR John F. Ehlers

Resolution Enhancement of Photogrammetric Digital Images

8 Filtering. 8.1 Mathematical operation

Digital image processing

Superresolution images reconstructed from aliased images

CHAPTER 3: DIGITAL IMAGING IN DIAGNOSTIC RADIOLOGY. 3.1 Basic Concepts of Digital Imaging

Introduction to IQ-demodulation of RF-data

Lecture 12: Cameras and Geometry. CAP 5415 Fall 2010

Basic Image Processing (using ImageJ)

High Quality Integrated Data Reconstruction for Medical Applications

Resolution Enhancement of images with Interpolation and DWT-SWT Wavelet Domain Components

Design of FIR Filters

ELECTRICAL ENGINEERING

Noise Reduction in Video Images Using Coring on QMF Pyramids by. Arthur J. Kalb

Course Overview. CSCI 480 Computer Graphics Lecture 1. Administrative Issues Modeling Animation Rendering OpenGL Programming [Angel Ch.

Spike-Based Sensing and Processing: What are spikes good for? John G. Harris Electrical and Computer Engineering Dept

Summary Nonstationary Time Series Multitude of Representations Possibilities from Applied Computational Harmonic Analysis Tests of Stationarity

The Fundamentals of MTF, Wiener Spectra, and DQE. Motivation

Lab 1. The Fourier Transform

chapter Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction 1.2 Historical Perspective

AMS 5 CHANCE VARIABILITY

Sampling Theory For Digital Audio By Dan Lavry, Lavry Engineering, Inc.

Image Compression and Decompression using Adaptive Interpolation

How To Understand The Discrete Fourier Transform

NRZ Bandwidth - HF Cutoff vs. SNR

The Calculation of G rms

The Math in Laser Light Math

Analyzing LASIK Optical Data Using Zernike Functions

B3. Short Time Fourier Transform (STFT)

FEGYVERNEKI SÁNDOR, PROBABILITY THEORY AND MATHEmATICAL

Convolution. The Delta Function and Impulse Response

CITY UNIVERSITY LONDON. BEng Degree in Computer Systems Engineering Part II BSc Degree in Computer Systems Engineering Part III PART 2 EXAMINATION

NMR Measurement of T1-T2 Spectra with Partial Measurements using Compressive Sensing

Short-time FFT, Multi-taper analysis & Filtering in SPM12

CALCULATION OF CLOUD MOTION WIND WITH GMS-5 IMAGES IN CHINA. Satellite Meteorological Center Beijing , China ABSTRACT

The Normal Approximation to Probability Histograms. Dice: Throw a single die twice. The Probability Histogram: Area = Probability. Where are we going?

Probability and Random Variables. Generation of random variables (r.v.)

Review of Fourier series formulas. Representation of nonperiodic functions. ECE 3640 Lecture 5 Fourier Transforms and their properties

Image Filtering & Edge Detection

L and C connected together. To be able: To analyse some basic circuits.

ADVANCED APPLICATIONS OF ELECTRICAL ENGINEERING

Principles of Digital Communication

CONVOLUTION Digital Signal Processing

Improving A D Converter Performance Using Dither

2.2 Creaseness operator

Visualization and Feature Extraction, FLOW Spring School 2016 Prof. Dr. Tino Weinkauf. Flow Visualization. Image-Based Methods (integration-based)

Final Report for Professional Development Grants. From

Point Lattices in Computer Graphics and Visualization how signal processing may help computer graphics

Transcription:

Linear Filtering Part II Selim Aksoy Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr

Fourier theory Jean Baptiste Joseph Fourier had a crazy idea: Any periodic function can be written as a weighted sum of sines and cosines of different frequencies (1807). Don t believe it? Neither did Lagrange, Laplace, Poisson, But it is true! Fourier series Even functions that are not periodic (but whose area under the curve is finite) can be expressed as the integral of sines and cosines multiplied by a weighing function. Fourier transform CS 484, Spring 2009 2009, Selim Aksoy 2

Fourier theory The Fourier theory shows how most real functions can be represented in terms of a basis of sinusoids. The building block: A sin( ωx + Φ ) Add enough of them to get any signal you want. Adapted from Alexei Efros, CMU CS 484, Spring 2009 2009, Selim Aksoy 3

Fourier transform CS 484, Spring 2009 2009, Selim Aksoy 4

Fourier transform CS 484, Spring 2009 2009, Selim Aksoy 5

Fourier transform CS 484, Spring 2009 2009, Selim Aksoy 6

Fourier transform CS 484, Spring 2009 2009, Selim Aksoy 7

Fourier transform CS 484, Spring 2009 2009, Selim Aksoy 8

Fourier transform CS 484, Spring 2009 2009, Selim Aksoy 9

Fourier transform Adapted from Alexei Efros, CMU CS 484, Spring 2009 2009, Selim Aksoy 10

Fourier transform Adapted from Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 11

Fourier transform Adapted from Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 12

Fourier transform CS 484, Spring 2009 2009, Selim Aksoy 13

Fourier transform CS 484, Spring 2009 2009, Selim Aksoy 14

Fourier transform Adapted from Shapiro and Stockman CS 484, Spring 2009 2009, Selim Aksoy 15

Fourier transform Example building patterns in a satellite image and their Fourier spectrum. CS 484, Spring 2009 2009, Selim Aksoy 16

Convolution theorem CS 484, Spring 2009 2009, Selim Aksoy 17

Frequency domain filtering Adapted from Shapiro and Stockman, and Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 18

Frequency domain filtering Since the discrete Fourier transform is periodic, padding is needed in the implementation to avoid aliasing (see section 4.6 in the Gonzales-Woods book for implementation details). CS 484, Spring 2009 2009, Selim Aksoy 19

Frequency domain filtering f(x,y) h(x,y) F(u,v) H(u,v) g(x,y) G(u,v) CS 484, Spring 2009 2009, Selim Aksoy 20 Adapted from Alexei Efros, CMU

Smoothing frequency domain filters Adapted from Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 21

Smoothing frequency domain filters CS 484, Spring 2009 2009, Selim Aksoy 22

Smoothing frequency domain filters The blurring and ringing caused by the ideal lowpass filter can be explained using the convolution theorem where the spatial representation of a filter is given below. CS 484, Spring 2009 2009, Selim Aksoy 23

Smoothing frequency domain filters Adapted from Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 24

Smoothing frequency domain filters CS 484, Spring 2009 2009, Selim Aksoy 25

Sharpening frequency domain filters CS 484, Spring 2009 2009, Selim Aksoy 26

Sharpening frequency domain filters Adapted from Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 27

Sharpening frequency domain filters Adapted from Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 28

Sharpening frequency domain filters Adapted from Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 29

Frequency domain processing An image and its Fourier spectrum. Adapted from Alexei Efros, CMU CS 484, Spring 2009 2009, Selim Aksoy 30

Frequency domain processing Results of modifying the spectrum and reconstructing the image. Adapted from Alexei Efros, CMU CS 484, Spring 2009 2009, Selim Aksoy 31

Frequency domain processing Results of modifying the spectrum and reconstructing the image. Adapted from Alexei Efros, CMU CS 484, Spring 2009 2009, Selim Aksoy 32

Template matching Correlation can also be used for matching. If we want to determine whether an image f contains a particular object, we let h be that object (also called a template) and compute the correlation between f and h. If there is a match, the correlation will be maximum at the location where h finds a correspondence in f. Preprocessing such as scaling and alignment is necessary in most practical applications. CS 484, Spring 2009 2009, Selim Aksoy 33

Template matching Adapted from Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 34

Template matching Face detection using template matching: face templates. CS 484, Spring 2009 2009, Selim Aksoy 35

Template matching Face detection using template matching: detected faces. CS 484, Spring 2009 2009, Selim Aksoy 36

Resizing images How can we generate a half-sized version of a large image? Adapted from Steve Seitz, U of Washington CS 484, Spring 2009 2009, Selim Aksoy 37

Resizing images 1/8 1/4 Throw away every other row and column to create a 1/2 size image (also called sub-sampling). Adapted from Steve Seitz, U of Washington CS 484, Spring 2009 2009, Selim Aksoy 38

Resizing images 1/2 1/4 (2x zoom) 1/8 (4x zoom) Does this look nice? Adapted from Steve Seitz, U of Washington CS 484, Spring 2009 2009, Selim Aksoy 39

Resizing images We cannot shrink an image by simply taking every k th pixel. Solution: smooth the image, then sub-sample. Gaussian 1/4 Gaussian 1/8 Gaussian 1/2 Adapted from Steve Seitz, U of Washington CS 484, Spring 2009 2009, Selim Aksoy 40

Resizing images Gaussian 1/2 Gaussian 1/4 (2x zoom) Gaussian 1/8 (4x zoom) Adapted from Steve Seitz, U of Washington CS 484, Spring 2009 2009, Selim Aksoy 41

Sampling and aliasing Adapted from Steve Seitz, U of Washington CS 484, Spring 2009 2009, Selim Aksoy 42

Sampling and aliasing Errors appear if we do not sample properly. Common phenomenon: High spatial frequency components of the image appear as low spatial frequency components. Examples: Wagon wheels rolling the wrong way in movies. Checkerboards misrepresented in ray tracing. Striped shirts look funny on color television. CS 484, Spring 2009 2009, Selim Aksoy 43

Gaussian pyramids Adapted from Gonzales and Woods CS 484, Spring 2009 2009, Selim Aksoy 44

Gaussian pyramids Adapted from Michael Black, Brown University CS 484, Spring 2009 2009, Selim Aksoy 45

Gaussian pyramids Adapted from Michael Black, Brown University CS 484, Spring 2009 2009, Selim Aksoy 46