Summary of Lecture 8

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

Computational Foundations of Cognitive Science

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

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

The Calculation of G rms

Applications to Data Smoothing and Image Processing I

jorge s. marques image processing

Sharpening through spatial filtering

Lecture 14. Point Spread Function (PSF)

SGN-1158 Introduction to Signal Processing Test. Solutions

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

Lectures 6&7: Image Enhancement

UNIVERSITY OF CALIFORNIA, SAN DIEGO Electrical & Computer Engineering Department ECE Fall 2010 Linear Systems Fundamentals

QUALITY TESTING OF WATER PUMP PULLEY USING IMAGE PROCESSING

Implementation of Canny Edge Detector of color images on CELL/B.E. Architecture.

Principal components analysis

REAL TIME TRAFFIC LIGHT CONTROL USING IMAGE PROCESSING

Image Gradients. Given a discrete image Á Òµ, consider the smoothed continuous image ܵ defined by

The continuous and discrete Fourier transforms

Assessment. Presenter: Yupu Zhang, Guoliang Jin, Tuo Wang Computer Vision 2008 Fall

Chapter 8 - Power Density Spectrum

Edge detection. (Trucco, Chapt 4 AND Jain et al., Chapt 5) -Edges are significant local changes of intensity in an image.

MODULATION TRANSFER FUNCTION MEASUREMENT METHOD AND RESULTS FOR THE ORBVIEW-3 HIGH RESOLUTION IMAGING SATELLITE

Self Organizing Maps: Fundamentals

Jitter Measurements in Serial Data Signals

Solving Mass Balances using Matrix Algebra

TCOM 370 NOTES 99-4 BANDWIDTH, FREQUENCY RESPONSE, AND CAPACITY OF COMMUNICATION LINKS

Component Ordering in Independent Component Analysis Based on Data Power

Image Compression through DCT and Huffman Coding Technique

(Refer Slide Time: 06:10)

CONTROL SYSTEMS, ROBOTICS, AND AUTOMATION - Vol. V - Relations Between Time Domain and Frequency Domain Prediction Error Methods - Tomas McKelvey

Solving Systems of Linear Equations

Bildverarbeitung und Mustererkennung Image Processing and Pattern Recognition

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors

Row Echelon Form and Reduced Row Echelon Form

Noise estimation in remote sensing imagery using data masking

Matrix Multiplication

COMPARISON OF OBJECT BASED AND PIXEL BASED CLASSIFICATION OF HIGH RESOLUTION SATELLITE IMAGES USING ARTIFICIAL NEURAL NETWORKS

PATTERN RECOGNITION AND MACHINE LEARNING CHAPTER 4: LINEAR MODELS FOR CLASSIFICATION

5 Signal Design for Bandlimited Channels

1 Review of Least Squares Solutions to Overdetermined Systems

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

PYKC Jan Lecture 1 Slide 1

Recurrent Neural Networks

L9: Cepstral analysis

Lecture 2. Marginal Functions, Average Functions, Elasticity, the Marginal Principle, and Constrained Optimization

Programming Exercise 3: Multi-class Classification and Neural Networks

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

Linear Filtering Part II

Representing Vector Fields Using Field Line Diagrams

Scalar Valued Functions of Several Variables; the Gradient Vector

Em bedded DSP : I ntroduction to Digital Filters

Lecture 8 ELE 301: Signals and Systems

DATA ANALYSIS II. Matrix Algorithms

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

High Quality Image Magnification using Cross-Scale Self-Similarity

Modelling, Extraction and Description of Intrinsic Cues of High Resolution Satellite Images: Independent Component Analysis based approaches

GPU ACCELERATED AUTOMATED FEATURE EXTRACTION FROM SATELLITE IMAGES

Adaptive Equalization of binary encoded signals Using LMS Algorithm

Vision based Vehicle Tracking using a high angle camera

CCNY. BME I5100: Biomedical Signal Processing. Linear Discrimination. Lucas C. Parra Biomedical Engineering Department City College of New York

Nonlinear Programming Methods.S2 Quadratic Programming

Increasing for all. Convex for all. ( ) Increasing for all (remember that the log function is only defined for ). ( ) Concave for all.

Measuring Line Edge Roughness: Fluctuations in Uncertainty

Signal to Noise Instrumental Excel Assignment

Binary Adders: Half Adders and Full Adders

Solution to Homework 2

Vector and Matrix Norms

The Algorithms of Speech Recognition, Programming and Simulating in MATLAB

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

FFT Algorithms. Chapter 6. Contents 6.1

LINES AND PLANES CHRIS JOHNSON

Introduction to Finite Automata

SOFTWARE FOR GENERATION OF SPECTRUM COMPATIBLE TIME HISTORY

Systems of Linear Equations

Object tracking & Motion detection in video sequences

Ehlers Filters by John Ehlers

3 Signals and Systems: Part II

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

Midwest Symposium On Circuits And Systems, 2004, v. 2, p. II137-II140. Creative Commons: Attribution 3.0 Hong Kong License

MUSICAL INSTRUMENT FAMILY CLASSIFICATION

3.1. Solving linear equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

MATH APPLIED MATRIX THEORY

Lecture 7: Finding Lyapunov Functions 1

Segmentation and Automatic Descreening of Scanned Documents

A Primer on Index Notation

Maximum likelihood estimation of mean reverting processes

10.2 Series and Convergence

DIGITAL SIGNAL PROCESSING - APPLICATIONS IN MEDICINE

Lecture Notes 2: Matrices as Systems of Linear Equations

Unified Lecture # 4 Vectors

Lecture 5: Variants of the LMS algorithm

CS 2750 Machine Learning. Lecture 1. Machine Learning. CS 2750 Machine Learning.

Nonlinear Edge Preserving Smoothing and Segmentation of 4-D Medical Images Via Scale-Space Fingerprint Analysis

Numerical Methods For Image Restoration

Introduction to Digital Filters

Linear Threshold Units

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

Lecture 2: Homogeneous Coordinates, Lines and Conics

Final Year Project Progress Report. Frequency-Domain Adaptive Filtering. Myles Friel. Supervisor: Dr.Edward Jones

Transcription:

Summary of Lecture 8 In lecture 8 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 1

Fourier Transforms and Gibbs Phenomenon c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 2

Fourier Transforms and Gibbs Phenomenon contd. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 3

Images and Edges c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 4

Images and Edges contd. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 5

Edges and Noise c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 6

Edge Detection - Motivation c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 7

Edge Detection Algorithms - Continuous Time Suppose x(t) is a continuous time signal containing edges. The edges can be detected in two ways via: 1. Calculating y(t) = dx(t) dt and finding the locations t i where y(t) has a local maximum, i.e., there is an edge at location t i if: y(t i ) y(t i + ɛ) 0, 0 < ɛ << 1 In order to incorporate non-ideal signals we will say that there is an edge at location t i if y(t i ) > T e where T e > 0 is a threshold or the strength of the edge. However, we will still refer to this algorithm as detecting the local maxima. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 8

Edge Detection Algorithms - contd. 2. Calculating y(t) = d2 x(t) and finding the locations dt 2 t i of the zero crossings of y(t), i.e., there is an edge at location t i if: y(t i + ɛ) > 0 y(t i ɛ) < 0, 0 < ɛ << 1 or y(t i + ɛ) < 0 y(t i ɛ) > 0, 0 < ɛ << 1 Let c(t) = y(t) y(t) > T e 0 otherwise where T e > 0 is a threshold. In order to incorporate non-ideal signals we will say that there is an edge at location t i if c(t) has a zero crossing at t i. We will still refer to this algorithm as detecting the zero crossings. (1) c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 9

Edge Detection Algorithms - Discrete Time We can simply approximate the derivatives d/dt and d 2 /dt 2 by discrete approximations. These approximations are called gradient operators. Images are two dimensional. If we only incorporate row gradient operators we can only detect vertical edges: Do two passes: Detect vertical edges and then detect horizontal edges. We can define directionless gradient operators that detect horizontal and vertical edges in one pass. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 10

General Algorithm General edge detection algorithm: 1. Apply gradient operator to the image A. 2. Detect local maxima or zero crossings (with T e ). 3. Generate an edge-map E A where E A (m, n) = 255 pixel (m, n) is an edge pixel 0 otherwise (2) 4. If a two pass approach is used to yield horizontal E h A and vertical E v A edge maps one can define an overall map by E A (m, n) = 255 E h A(m, n) = 255 or E v A(m, n) = 255 0 otherwise (3) c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 11

Gradient Operators Gradient operators are defined as filters and application of gradient operators is implemented by linear filtering of the image. Note however that edge detection involves a nonlinear step where we detect local maxima for derivative operators or zero crossings for second derivative operators on the linearly filtered output. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 12

Gradient Operators contd. Local Maxima: Determining local maxima in two dimensions is established by comparing the absolute value of the filtered output at (m, n) to T e. Zero Crossings: Let B denote the filtered and thresholded (with T e ) image. If B(m, n) = 0 and sign(b(m, n 1)B(m, n + 1)) = 1 then there is a vertical edge at pixel (m, n), etc. If B(m, n) 0 and sign(b(m, n)b(m, n + 1)) = 1 then there is a vertical edge between pixels (m, n) and (m, n + 1). Zero Crossings for Directionless Operators: On a two dimensional grid, a zero-crossing is said to occur wherever there is a zero crossing in at least one direction. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 13

First Derivative Operators Simple: [ 1 0 1], Prewitt: 1 0 1 1 0 1 1 0 1, Sobel: 1 0 1 2 0 2 1 0 1 Operators for horizontal edges can be obtained by transposing the filters. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 14

Example - Vertical Edges Detecting vertical edges on Lenna. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 15

Example - Vertical Edges contd. Detecting vertical edges on Lenna+10*randn(512). c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 16

Directionless Second Derivative Operators It can be shown that the Laplacian Operator 2 f = 2 f/ 2 x + 2 f/ 2 y is rotationally symmetric. Hence we can expect a discrete approximation to this operator to be approximately rotationally symmetric. One such approximation is Z(m, n) = 0 1 0 1 4 1 0 1 0 c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 17

Edge Detection and Noise The derivative operators D(m, n) used in edge detection are susceptible to noise. One approach would be to low pass filter (L(m, n)) an image first (to reduce noise) and then employ the derivative operator. In practice one chooses spatial low pass filters in order to avoid the Gibbs phenomenon. Let A(m, n) denote the original image. Then we have C = D L A as the overall filtered image on which nonlinear decisions can be made. One can thus define a combined gradient operator H = D L. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 18

The Laplacian of a Gaussian Gradient Operator The Gaussian sequence defined by L(m, n) = e (m2 +n 2 )/2σ 2 is a low-pass sequence and can be used as a low-pass filter (σ controls the bandwidth of this filter). The Laplacian of a Gaussian H = Z L can thus be defined as a second derivative gradient operator with favorable performance under noisy conditions. σ is chosen large for very noisy conditions and small for relatively noiseless conditions. Typically L(m, n) is employed as a finite extent sequence P 1 P 2 (m, n must be centered around zero 1 m, n 1 etc.). (Large values of σ will in general require larger extents.) Edges are detected using the zero crossings of the filtered output (with T e ). c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 19

Example P 1 = P 2 = 3,T e = 30,σ = 2 c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 20

Human Visual System and Mach Bands c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 21

Low-pass Response of the Human Visual System The human visual system low-pass filters the scenes under observation. We will exploit this observation by hiding processing errors where humans cannot see them. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 22

Summary In this lecture we learnt about the Gibbs phenomenon. We learnt edge detection with: Gradient operators based on first derivatives and associated local maxima. Gradient operators based on second derivatives and associated zero crossings. (please read pages 347-353 from the textbook). We learnt about Mach bands and the low-pass nature of the human visual system (please read pages 51-56 from the textbook). c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 23

Homework IX 1. Detect horizontal and vertical edges in your image using the simple, Prewitt and Sobel operators. Show horizontal edge maps, vertical edge maps and combined edge maps. Comment on differences between horizontal and vertical edge maps. Experiment with the relevant thresholds and try to choose them as best as you can. 2. Detect edges in your image by using the zero crossings of the Laplacian of Gaussian operator. Adjust P 1, P 2, T e, σ to obtain the best results. 3. Repeat 2 by starting with a noisy version of your image (say with image+10randn()). Try to adjust the parameters to match noiseless performance. Comment on the differences of the result with 2. 4. Generate a one dimensional signal and its perceived version as I have done. Try to find a filter which when convolved with the original signal gives the perceived signal. (Hint: Use DFTs of the two signals and use the convolution multiplication property. Be wary of divisions by zeros or small values.) Is the filter you have discovered low-pass? Show the 1D DFT and the filter itself. c Onur G. Guleryuz, Department of Electrical and Computer Engineering, Polytechnic University, Brooklyn, NY 24

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 25