1D and 2D signal processing

Slides:



Advertisements
Similar presentations
Signals and Fourier Theory
Advertisements

Fourier Transform (Chapter 4)
Fourier Transform – Chapter 13. Image space Cameras (regardless of wave lengths) create images in the spatial domain Pixels represent features (intensity,
Chapter Four Image Enhancement in the Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
Computer Graphics Recitation 6. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
CHAPTER 4 Image Enhancement in Frequency Domain
MSP15 The Fourier Transform (cont’) Lim, MSP16 The Fourier Series Expansion Suppose g(t) is a transient function that is zero outside the interval.
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F(  ) is the spectrum of the function.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
CSCE 641 Computer Graphics: Fourier Transform Jinxiang Chai.
CPSC 641 Computer Graphics: Fourier Transform Jinxiang Chai.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Computational Photography: Fourier Transform Jinxiang Chai.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
CELLULAR COMMUNICATIONS DSP Intro. Signals: quantization and sampling.
Systems: Definition Filter
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 19.
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
Module 2 SPECTRAL ANALYSIS OF COMMUNICATION SIGNAL.
Signal and Systems Prof. H. Sameti Chapter 5: The Discrete Time Fourier Transform Examples of the DT Fourier Transform Properties of the DT Fourier Transform.
Fourier Series. Introduction Decompose a periodic input signal into primitive periodic components. A periodic sequence T2T3T t f(t)f(t)
Chapter 5 Digital Image Processing Fundamentals. Learning Goals The human visual system Digitizing images Display of Images.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Chapter 4 Fourier transform Prepared by Dr. Taha MAhdy.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Background Any function that periodically repeats itself.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
Chapter 5 Digital Image Processing Fundamentals. Learning Goals The human visual system Digitizing images Display of Images.
7- 1 Chapter 7: Fourier Analysis Fourier analysis = Series + Transform ◎ Fourier Series -- A periodic (T) function f(x) can be written as the sum of sines.
Image as a linear combination of basis images
2D Sampling Goal: Represent a 2D function by a finite set of points.
Fourier Transform.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Basic idea Input Image, I(x,y) (spatial domain) Mathematical Transformation.
2D Fourier Transform.
Frequency domain analysis and Fourier Transform
Filters– Chapter 6. Filter Difference between a Filter and a Point Operation is that a Filter utilizes a neighborhood of pixels from the input image to.
The Fourier Transform.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Digital Image Processing , 2008
Miguel Tavares Coimbra
Jean Baptiste Joseph Fourier
Image Subtraction Mask mode radiography h(x,y) is the mask.
The Frequency Domain, without tears
Basis beeldverwerking (8D040) dr. Andrea Fuster dr. Anna Vilanova Prof
FFT-based filtering and the
Image Enhancement in the
Frequency domain analysis and Fourier Transform
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F() is the spectrum of the function.
All about convolution.
UNIT II Analysis of Continuous Time signal
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
ENG4BF3 Medical Image Processing
Frequency Domain Analysis
CSCE 643 Computer Vision: Thinking in Frequency
Sampling and Reconstruction
Chapter 8 The Discrete Fourier Transform
Digital Image Processing
Lecture 5: Resampling, Compositing, and Filtering Li Zhang Spring 2008
Instructor: S. Narasimhan
Digital Image Processing Week IV
Chapter 8 The Discrete Fourier Transform
Chapter 8 The Discrete Fourier Transform
Chapter 3 Sampling.
Lecture 4 Image Enhancement in Frequency Domain
Discrete Fourier Transform
Presentation transcript:

1D and 2D signal processing Convolution 1D and 2D signal processing

Convolution Theorem Let F and H be the Fourier transforms of f and h For big filters, can be faster to convert to fourier domain, then multiply, then convert back Let F and H be the Fourier transforms of f and h Convolution in the spatial (image) domain is equivalent to multiplication in the frequency (Fourier) domain

Symmetric theorem: Convolution in the frequency domain is equivalent to multiplication in the spatial domain

2-D Convolution thm f(x,y) h(x,y) g(x,y) *  |F(sx,sy)| |H(sx,sy)| |G(sx,sy)|

Consider the delta function

Time-shift delta

Sample the input (it’s a convolution!)

What is the spectrum?

Fourier Coefficients

CTFT

Euler’s identity

Sine-cos Rep

Harmonic Analysis

Convolution=time-shift&multi

Convolution Thm multiplication in the time domain = convolution in the frequency domain

Sample

Spectrum reproduced spectrum to be reproduced at intervals

Summary

Example of 1D convoln

2D Convolution

2D Convolution

Region of Support The region of support is defined as that area of the .kernel which is non-zero linear convolution:=signal has infinite extent but kernel has finite support If function has finite region of support we have compact support

Real images have finite region of support But we treat them as periodic and infinite! We repeat kernels so that they have the same period as the images. We call this cyclic convolution.

Convolution in 2D

Avoid the Mod op

What is wrong with avoiding the mod op? How do I find the center of the kernel?

Cyclic Convolution

Implementing Convolution for(int y = 0; y < height; y++) { for(int x = 0; x < width; x++) { sum = 0.0; for(int v = -vc; v <= vc; v++) for(int u = -uc; u <= uc; u++) sum += f[cx(x-u) ][cy(y-v)] * k[ u+uc][v+vc]; if (sum < 0) sum = 0; if (sum > 255) sum = 255; h[x][y] = (short)sum; }

What happens to the image if you ignore the wrap?

Cyclic Convolution keeps the edges

Can you think of a better way to implement convolution? Keep the edges! Don’t use the mod operation. How about growing the image by the size of the kernel*2?

Convolution is slow, how can I speed it up? JAI! FFT!? Other ideas?

But JAI… Eats my edges! Devised j2d Border Implement that using MDI!

For HW Integrate the BorderFrame in j2d.border into the MDI interface so that you can apply the BorderPanel to the input image. Use the RunSpinnerSlider to dynamic alter the parameters. Update the image dynamically Apply the change with an apply button.