Linear system Convolution Linear Filter

Slides:



Advertisements
Similar presentations
Motion illusion, rotating snakes. Slide credit Fei Fei Li.
Advertisements

CS 691 Computational Photography
Computational Photography: Sampling + Reconstruction Connelly Barnes Slides from Alexei Efros and Steve Marschner.
Lecture 2: Filtering CS4670/5670: Computer Vision Kavita Bala.
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.
Signal Processing COS 323 COS 323. Digital “Signals” 1D: functions of space or time (e.g., sound)1D: functions of space or time (e.g., sound) 2D: often.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
CSCE 641 Computer Graphics: Fourier Transform Jinxiang Chai.
Comp 665 Convolution. Questions? Ask here first. Likely someone else has the same question.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Basic Image Processing January 26, 30 and February 1.
02/12/02 (c) 2002 University of Wisconsin, CS 559 Filters A filter is something that attenuates or enhances particular frequencies Easiest to visualize.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
Digital Signals and Systems
The Convolution Integral
Effective Computation of Linear Filters The following properties are used to shorten the computation time f  g = g  f, f  (g  h) = (f  g)  h, f 
111 Lecture 2 Signals and Systems (II) Principles of Communications Fall 2008 NCTU EE Tzu-Hsien Sang.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Signal and Systems Prof. H. Sameti Chapter #2: 1) Representation of DT signals in terms of shifted unit samples System properties and examples 2) Convolution.
Chapter 5: Neighborhood Processing
11/22/20151 Digital Filters. 11/22/20152 Time domain to Frequency Domain and vice versa Filter Characteristics.
2D Sampling Goal: Represent a 2D function by a finite set of points.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Chapter 2 linear time invariant systems continuous time systems Prepared by Dr. Taha MAhdy.
Image Enhancement (Frequency Domain)
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Digital Image Processing Spatial Domain Filtering: Part I.
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Leo Lam © Signals and Systems EE235. Leo Lam © Today’s menu LTI System – Impulse response Lead in to Convolution.
Sampling Rate Conversion by a Rational Factor, I/D
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.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Sampling (Section 4.3) CS474/674 – Prof. Bebis.
Convolution.
Miguel Tavares Coimbra
Advanced Computer Graphics
Chapter 2. Signals and Linear Systems
- photometric aspects of image formation gray level images
… Sampling … … Filtering … … Reconstruction …
Opracowanie językowe dr inż. J. Jarnicki
Basis beeldverwerking (8D040) dr. Andrea Fuster dr. Anna Vilanova Prof
Echivalarea sistemelor analogice cu sisteme digitale
Linear Time Invariant Systems
Sampling rate conversion by a rational factor
Signals and Systems Lecture 20
(C) 2002 University of Wisconsin, CS 559
Convolution.
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.
Fourier Transform.
All about convolution.
- photometric aspects of image formation gray level images
Outline Linear Shift-invariant system Linear filters
Lect5 A framework for digital filter design
UNIT V Linear Time Invariant Discrete-Time Systems
CSCE 643 Computer Vision: Image Sampling and Filtering
CSCE 643 Computer Vision: Thinking in Frequency
Signal and Systems Chapter 2: LTI Systems
Advanced Digital Signal Processing
Motion illusion, rotating snakes
Convolution.
Lecture 5: Resampling, Compositing, and Filtering Li Zhang Spring 2008
Basic Image Processing
Digital Image Processing Week IV
Convolution.
Fourier Transforms.
LECTURE 05: CONVOLUTION OF DISCRETE-TIME SIGNALS
Convolution.
Review and Importance CS 111.
Convolution.
Presentation transcript:

Linear system Convolution Linear Filter CS 111: Digital Image Processing Aditi Majumder

Outline Linear System Convolution Linear Filter Properties Response Concept Linear Filter Low pass, High pass, Aliasing…

Properties of Linear System Homogeneity: Additivity: Shift Invariance:

Other Properties of Linear Systems Commutative: Superposition: If each generates multiple outputs, Then the addition of inputs generates an addition of outputs.

Decomposition - Synthesis

Response of Linear System Impulse: Signal with only one non-zero sample. Delta (δ[t]) is an impulse with non-zero sample at t = 0

Response of Linear System Impulse response h[t] output of the system to the input δ[t].

Response of Linear System Impulse response h[t] output of the system to the input δ[t]. Convolution: Response of a linear system with impulse response, h, to a general signal

Convolution – Input side a1 a2 a3 a4 a5 a6 a7 Kernel k1 k2 k3 k1 k2 k3         Output        

Convolution – Output side Input a1 a2 a3 a4 a5 a6 a7 Kernel k3 k2 k1 k3 k2 k1     Output             i=1 i=2 i=3

Convolution s[m] h[m] s[0].h[n] s[1].h[n-1] s[2].h[n-2]

2D Convolution

Properties of Convolution All pass system Amplifier (k>0) / attenuator (k<0) Delay

Properties of Convolution Commutative Associative Distributive

Properties of Convolution Cascading convolutions Combination of parallel convolutions

Blurring filters More blurring implies widening the base and shortening the height of the spike further. What does it look like? Box filters are not best blurring filters but the easiest to implement.

Duality Spatial Domain Frequency Domain

Duality Widening in one domain is narrowing in another and vice-versa. Spatial Domain Frequency Domain Widening in one domain is narrowing in another and vice-versa.

Duality Convolution of two functions in time/spatial domain is a multiplication in frequency domain Vice Versa

All Pass Filter  

Low Pass Filter k[t] K[f] F t f A(f) a(t) X t

Low Pass Filtering Box filter is known as low pass filter.

Box Filter Effect of increasing the size of the box filter

Gaussian Pyramid

Gaussian Pyramid

Box is not the only shape Gaussian is a better shape Any thing more smooth is better x[t] X[f] F t f

Hierarchical Filtering 1/4 1/4 1/4 1/4 N x N N/2 x N/2 N/4 x N/4 1 x 1

Issue of Sampling As an image undergoes low pass filtering, its frequency content decreases Minimum number of samples required to adequately sample the low pass filtered image is less. Low pass filtered image can be at a smaller size than the original image.

Subsampling Simple subsampling Pre-filtering and subsampling

Aliasing Artifact Input (256 x 256) ANTI-ALIASING Filtered (256 x 256) Filtering reduces frequency content. Hence, lower sampling is sufficient. Input (256 x 256) ANTI-ALIASING Filtered (256 x 256) Insufficient sampling. Hence, aliasing. Subsampled from filtered image(128 x 128) Subsampled(128 x 128)

High Pass Filter  

High Pass Filter Original Image Low pass filtered High pass filtered

Band-limited Images (Laplacian Pyramid) Bn-1= Gn-1-Gn-2 fn-2<fn-1<fn Bn= Gn-Gn-1 fn-2 fn-1 fn Gn-2 Gn-1 Gn

Band-limited Images (Laplacian Pyramid)

2D Filter Separability Visualizing 2D filters from their 1D counter part Box Filter Gaussian Filter High Pass Filter

2D Filter Separability  

2D Filter Separability Advantage Separable filters can be implemented more efficiently Convolving with h Number of multiplications = 2pqN Convolving with a and b Number of multiplications = 2(p+q)N