Top Banner
Intro to Signal Processing Signal A function that conveys information Often thought of as a function of time We will consider it to be a function of space(spatial domain)
80

Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Apr 01, 2018

Download

Documents

letuong
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Intro to Signal Processing

• Signal– A function that conveys information

– Often thought of as a function of time

– We will consider it to be a function of “space”(spatial domain)

Page 2: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Intro to Signal Processing

• f(x) can be thought of a slice through an image (or a scanline)

• We will consider the 1D case

• Although the concepts apply to 2D

Page 3: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Intro to Signal Processing

• f(x) can be thought of a slice through an image (or a scanline)

1

Inte

nsit

yf(x)

0x

Image Scanline Signal

Page 4: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Intro to Signal Processing

• f(x) can be thought of a slice through an image (or a scanline)

Inte

nsit

y

f(x)

ImageScanline Signal

Page 5: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Question

• How do we sample this signal?• In order to reconstruct it?

Page 6: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Sampling too little

Page 7: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Really bad case

High frequency signal, but poor samplingreconstructs a lower frequency!

Page 8: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Aliasing

• Definition of word “Alias”– An assumed name– A false signal

• Reconstructing the wrong signal due to poor sampling is called “Aliasing”

• Trying to avoid aliasing is “Anti-aliasing”

Page 9: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Just take more samples you say!

Page 10: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Consider this signal

You need an infinite number

of samples!

f(x)

xHow many samples do you need?

Page 11: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Sampling Theory

• Provides a framework to describe how a function needs to be sampled in order to reconstruct it

• It will require us to consider the function’s frequency decomposition

Page 12: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Frequency Domain

• A spatial signal f(x) can be represented as a sum of phase-shifted sine waves (of various amplitudes)

• May contain any frequency (infinitely many)

• Each f(x) has one representation in the frequency domain (and vice versa)

Page 13: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Fourier Analysis

• To compute these sine waves

• Fourier Transform of a function f(x), is F(u) – ‘u’ represents frequency– F(u) is the representation of f(x) in the

frequency domain

Page 14: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Fourier Transform

with

Page 15: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Fourier Transform

(Eulers formula)

we can rewrite F(u) as:

F(u) is in terms of sines (and cosines)(recall that sin(x) = cos(x-[pi/2]) )

Page 16: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Fourier Transform• F(u) can be written as real and imaginary components

– F(u) = R(u) + iI(u)

• Magnitude/Amplitude of the sine wave of frequency u

|F(u)| = sqrt( R(u)^2 + I(u)^2 )

• Phase-shift (sometimes called phase angle), φ, of frequency (u)

φ(u) = tan-1| I(u) / R(u) |

Page 17: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Example: Sum of sines

http://www.falstad.com/fourier/Interactive Demo at

Page 18: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Signal f(x)

Page 19: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

f(x) and F(u)

f(x) |F(u)|

Page 20: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Inverse Fourier Transform

Page 21: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Example

Page 22: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Example

Original Sum of the frequencies(using only 10 frequencies)

Page 23: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Example f(x) to F(u)

• Online demo http://www.jhu.edu/~signals/fourier2/index.html

Page 24: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

f(x) -> F(u)

Page 25: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

f(x,y) -> F(u,v)

Page 26: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Fourier Pairs and Properties

• We will need to know some common f(x) and their F(u)

• f(x) and F(u) are Fourier pairs

– where F(u) = F {f(x)}– there are some very interesting relationships

between f(x) and its F(u)

Page 27: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Some useful functions f(x)f

x

1

f(x) = 1 x>00 x<0• Step function

• Sign function

• Rectangular function

• delta function(a pulse)

0

f

f(x) = 1 x>0-1 x<0 x

1

-1

f

x

1

f(x) = 1 |x|>a0 |x|<a a-a

0δ(x) =

integral at x is 10 elsewhere

Page 28: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

delta function

∫∞

∞−

=1)( dxxδ

Note then:

)()()(∫∞

∞−

=− oo xfdxxfxxδ

where δ(x-x0)intergal at x0 is 1

0 elsewhere

(pulse at x0)

Page 29: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Some interesting pairs

3/2x0

x

f

A

x0-x0

f(x) = A F(u) = 2Ax0 sin(x0u)x0u

2Ax01/2x0 1/x0

u

F

x

k

f(x) = k

f

k

F(u) = kδ(u)

F

Page 30: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Some interesting pairsf F

x

f(x) = Acos(u0x)

A/2AA/2

-u0 u0

F(u) = Aδ(u -u0) + Aδ(u + u0)2 2

1f

-x0 x0-2x0-3x0 2x0 3x0

F1/x0

1/x0-2/x0 2/x00 - 1/x0

∑∞

−∞=

−∂=n

nxxf )()( ∑∞

−∞=

−∂=n x

nux

uF )(1)(00

Page 31: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Some interesting pairs

f

x2x0-2x0

A2

4A2x02

1/2x0 1/x0

u

F

F(u) = 4Ax02 sin2 (x0u)

(x0u) 2f(x) = -A2x + A2

2x0

x

f1

22/2)( σxexf −=

x

F

2/22

2)( ueuF σπσ −=

πσ 2

Page 32: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Symmetry of f(x) and F(u)

u

Ff

x

x

fF

u

Page 33: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Some Fourier Pairs Properties• Linearity

–F {f(x) + g(x) } = F(u) + G(u)

• Scaling

–F {f(ax) } = 1/|a| F(u/a)• Convolution

–F {f(x)*g(x) } = F(u)G(u)

Page 34: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Convolution of f(x) and g(x)

∫∞

∞−

∂−== ααα )()()(*)()( xgfxgxfxh

• h(x) =– for each x– flip g about x (mirror image of g . . .g(x-a) [a=-inf to inf])– h(x) = the integral of the point wise product of

f(a) and g(x-a) [a=-inf to inf]

Page 35: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Graphical Representation

h(x)

a = τ

h(x) = f(a)g(x-a)da h(x) = f(a)g(x-a)da

Page 36: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

In Frequency Domain

• Convolution in spatial domain• Is a multiplication in the frequency domain

–F { f(x)*g(x) } = F(u) G(u)

Page 37: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Want to compute h(x) = f(x)*g(x)?

• Compute

– F(u) =F {f(x)} and G(u) =F {g(x)}– H(u) = F(u)G(u)

• Compute

– h(x) = F -1 {H(u)}

Page 38: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

What is sampling?• Function f(x)

• Function s(x)

• Sampling can be thought of as a multiplication in the spatial domain

–Of a function f(x) with a function ofequally spaced “delta functions”, s(x)

–[s(x) is a train of delta functions]

Page 39: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

What is sampling?• Function f(x)

• Function s(x)

• Sampling can be thought of as a multiplication in the spatial domain

–Of a function f(x) with a function ofequally spaced “delta functions”, s(x)

–[s(x) is a train of delta functions]

Page 40: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Sampling in Frequency Domain

• Convolution of F(u)*S(u)

Page 41: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Convolution with a delta function

)()()()( oo xfdxxxxfxh =−= ∫∞

∞−

δRecall

f g h = f*g= δ(x)

Page 42: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Convolution with several delta functions

f*gf(x) g(x)

-T

AA

a a T-T T

Page 43: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Sampling’s Effect in Frequency Domain

S(u)s(x)

Page 44: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

F {f(x)}

Say that, f(x) has a Fourier transform, where the highestfrequency is W

(functions with a finite # of frequencies arecalled “band-limited” function)

Page 45: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Spatial Sampling in Frequency Domain

It will duplicate F(u)at intervals 1/∆x

Page 46: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

What does this mean?

We need to chose ∆xsuch that ∆x <= 1/2W

That is to say, we need to sample at least twice the highest frequency!

Page 47: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Sampling at 2W or higher

1/2W’ 2W’2W’W’ is slightly larger than W

Twice the highest frequency isoften called the “Nyquist Rate”

Page 48: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Nyquist Rate

This is a very important discovery.

It tells us how we mustsample a function in order

to reconstruct it!

Page 49: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

(Side Note)

• Seen these sampling rates?– 8 kHz -- phone– 16 kHz -- near high-fidelity– 44.1 kHz -- high-fidelity

• Do you know why?• Nyquist Rates

Page 50: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Reconstructing the Signal

F -1

Page 51: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Do you see why this is cool?

We have reconstructed f(x) using s(x)f(x)!We never “knew” f(x) directly!

Page 52: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Well, almost• We did get help from G(u)

– The “Box Filter”•

And the Fourier Transform

– h(x) = f(x)s(x)

–F { h(x)} = H(U)

– f(x) = F -1{G(u)*H(u)}

Page 53: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

What if we do everything in the spatial domain

• We know– F(u) = H(u)G(u)– f(x) = h(x)*g(u) H(u)G(u)

So, reconstruction in spatial domain is:

• f(x) = f(x)s(x) * F- -1{G(u)}

• What is F- -1{G(u)}?

x

f/F

u

F/fRecall this Fourier pair:

Page 54: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Spatial Domain Reconstruction

Convolve sampleswith an infinite sinc!!!

Page 55: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Remember our question?

Source2 x 2 pixels

How should we sample?

AND, that only works for“band-limited” f(x)

AnswerFor each destination pixel,take infinitely many samplesfrom the source and convolved them with a “sinc” function

Page 56: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

BACK TO REALITY

• Nyquist rate and all that Fourier stuff is nice on paper, but here are the hard facts– Few functions are band limited– We rarely perform a real Fourier transform– And nobody is going to take infinite samples!

Page 57: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Back to Reality

• Image Sampling and Filtering

– Lets look at what poor sampling means

– Lets look at what different filters mean

Page 58: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Sampling

Page 59: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Poor Sampling

Page 60: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Filtering• Assume good sampling

• How do we “combine” our samples to create a new pixel?

• This is equivalent to “filtering” in the frequency domain

• For instant– Infinite samples * sinc is the best filter

• What about practical approaches

Page 61: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Spatial Domain Filters

• Unweighted area sampling (box filter)

Page 62: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Box Filter

Very bad choice!

Allows lots of unwanted“noise” . . aliasing

But its fast to do in thespatial domain.

Page 63: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Spatial Domain Filters

• Weighted area sampling (triangle filter)• Linear Interpolation

sinc2

Page 64: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Triangle Filter

A little better

Not too complicatedto implement

Page 65: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Triangle Filter

Page 66: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Spatial Domain Filters

• Gaussian Filter• Convolve with a guassian

Page 67: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Gaussian Filter

Even Better

Falls off to zerovery quickly

More complicated to implement in spatialdomain

Page 68: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Blurring

These filters have a “blurring” effect on signals with high frequencies

Page 69: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Pre-filtering

• The problem is with high frequencies

• If we don’t sample at 2 twice the highest frequency we have trouble

• We know some signals have infinite frequencies!

• Why not get rid of these frequencies, then sample?

Page 70: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Pre-filter

Page 71: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Sample Filtered-Data

Page 72: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Pre-filtering

• Low Pass Filter, then Sampling

• “Blurs” the image

• Allows you to faithfully reconstruct a different signal (low pass signal)

• Pretty common in Audio

Page 73: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Back to where we started

• We have an image

• We have transformed it

• We are sampling it– Nearest Neighbor, Bi-linear, Bi-Cubic

Page 74: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Post-filter or Pre-filter?

• Depends on point of view– We generally do not sample an image, then

apply a filter• We apply a filter when we sample• Pre-Filtering

– But, the source image itself is sort of a set of “samples”

• OK, we are Post-Filtering

• We are filtering

Page 75: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Common Sampling ApproachesNearest Neighbor

Bi-linear Interpolation

Bi-Cubic

Page 76: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Nearest Neighbor

• Similar to a box filter – Maybe a little worse– Allows high-frequencies– Causes excessive blurring

• Benefits– Fast

• Cheap texture-mapping hardware– Doesn’t introduce new intensity values!

Page 77: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Bi-Linear Interpolation

• Triangle Filter (Sinc^2) – Better than nearest neighbor– Allows less high-frequencies– Causes blurring– Introduces new intensities

• Benefits– Not too slow

• Good texturing mapping hardware– Less “Jaggies”

Page 78: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Bi-Cubic Interpolation

• Similar to Gauss Filter– Better than bi-linear– Allows even less high-frequencies– Causes more blurring– Introduces new intensities

• Benefits– Slow

• Really good texturing mapping hardware– Even less “Jaggies”

Page 79: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Best would be a infinite sinc

• But that is too hard, infinite samples• Why not use a truncated sinc?

ringing

Page 80: Intro to Signal Processing - Vis Centerryang/Teaching/cs635-2016spring/Lectures/05.5...Intro to Signal Processing • Signal – A function that conveys information – Often thought

Don’t worry too much

• Live a good life

• Be kind to others – (especially little creatures)

• Avoid nearest neighbor

• Use bi-linear or bi-cubic sampling– Know these aren’t perfect– Use the fourier transform and prove to people that these

aren’t perfect– And be happy