LINEAR SYSTEM CONVOLUTION LINEAR FILTER CS 111: Digital Image - - PowerPoint PPT Presentation

linear system convolution linear filter
SMART_READER_LITE
LIVE PREVIEW

LINEAR SYSTEM CONVOLUTION LINEAR FILTER CS 111: Digital Image - - PowerPoint PPT Presentation

LINEAR SYSTEM CONVOLUTION LINEAR FILTER CS 111: Digital Image Processing Aditi Majumder Outline Linear System Properties Response Convolution Concept Properties Linear Filter Low pass, High pass, Aliasing 3


slide-1
SLIDE 1

LINEAR SYSTEM CONVOLUTION LINEAR FILTER

CS 111: Digital Image Processing Aditi Majumder

slide-2
SLIDE 2

Outline

  • Linear System
  • Properties
  • Response
  • Convolution
  • Concept
  • Properties
  • Linear Filter
  • Low pass, High pass, Aliasing…
slide-3
SLIDE 3

Properties of Linear System

3

  • 1. Homogeneity:
  • 2. Additivity:
  • 3. Shift Invariance:
slide-4
SLIDE 4

Other Properties of Linear Systems

  • 1. Commutative:
  • 2. Superposition: If each generates multiple outputs, Then the

addition of inputs generates an addition of outputs.

4

slide-5
SLIDE 5

Decomposition - Synthesis

5

slide-6
SLIDE 6

Response of Linear System

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

6

slide-7
SLIDE 7

Response of Linear System

  • Impulse response h[t]
  • output of the system to the input δ[t].

7

slide-8
SLIDE 8

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

8

slide-9
SLIDE 9

Convolution – Input side

9 a1 a2 a3 a4 a5 a6 a7

i=1

Input Kernel Output

k1 k2 k3

i=2

k1 k2 k3

i=3

slide-10
SLIDE 10

Convolution – Output side

10 a1 a2 a3 a4 a5 a6 a7

Input Kernel Output

k3 k2 k1

i=1 i=2

k3 k2 k1

i=3

slide-11
SLIDE 11

Convolution

11

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

slide-12
SLIDE 12

2D Convolution

12

slide-13
SLIDE 13

Properties of Convolution

  • All pass system
  • Amplifier (k>0) / attenuator (k<0)
  • Delay

13

slide-14
SLIDE 14

Properties of Convolution

  • Commutative
  • Associative
  • Distributive

14

slide-15
SLIDE 15

Properties of Convolution

  • Cascading convolutions
  • Combination of parallel convolutions

15

slide-16
SLIDE 16

Blurring filters

16

  • 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.

slide-17
SLIDE 17

Duality

17

Spatial Domain Frequency Domain

slide-18
SLIDE 18

Duality

18

Spatial Domain Frequency Domain

Widening in one domain is narrowing in another and vice- versa.

slide-19
SLIDE 19

Duality

  • Convolution of two functions in time/spatial domain is a

multiplication in frequency domain

  • Vice Versa

19

slide-20
SLIDE 20

All Pass Filter

20

slide-21
SLIDE 21

Low Pass Filter

21

t k[t] F f K[f]

A(f)

X

t a(t)

slide-22
SLIDE 22

Low Pass Filtering

  • Box filter is known as low pass filter.

22

slide-23
SLIDE 23

Box Filter

23

  • Effect of increasing the size of the box filter
slide-24
SLIDE 24

Gaussian Pyramid

24

slide-25
SLIDE 25

Gaussian Pyramid

25

slide-26
SLIDE 26

Box is not the only shape

  • Gaussian is a better shape
  • Any thing more smooth is better

26

t x[t] F f X[f]

slide-27
SLIDE 27

Hierarchical Filtering

27

1/4 1/4 1/4 1/4 N x N N/2 x N/2 N/4 x N/4

1 x 1

slide-28
SLIDE 28

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
  • riginal image.

28

slide-29
SLIDE 29

Subsampling

29

Simple subsampling Pre-filtering and subsampling

slide-30
SLIDE 30

Aliasing Artifact

30

Input (256 x 256) Subsampled(128 x 128) Subsampled from filtered image(128 x 128) Insufficient sampling. Hence, aliasing.

Filtering reduces frequency content. Hence, lower sampling is sufficient.

Filtered (256 x 256) ANTI-ALIASING

slide-31
SLIDE 31

High Pass Filter

  • 31
slide-32
SLIDE 32

High Pass Filter

32

Original Image Low pass filtered High pass filtered

slide-33
SLIDE 33

Band-limited Images (Laplacian Pyramid)

33

Gn Gn-1 Gn-2 fn fn-1 fn-2 fn-2<fn-1<fn Bn= Gn-Gn-1 Bn-1= Gn-1-Gn-2

slide-34
SLIDE 34

Band-limited Images (Laplacian Pyramid)

34

slide-35
SLIDE 35

2D Filter Separability

  • Visualizing 2D filters from their 1D counter part

35

Box Filter Gaussian Filter High Pass Filter

slide-36
SLIDE 36

2D Filter Separability

  • 36
slide-37
SLIDE 37

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

37