• No results found

Linear Filtering Part II

N/A
N/A
Protected

Academic year: 2021

Share "Linear Filtering Part II"

Copied!
46
0
0

Loading.... (view fulltext now)

Full text

(1)

Linear Filtering – Part II

Selim Aksoy

Department of Computer Engineering

Department of Computer Engineering

Bilkent University

(2)

Fourier theory



Jean Baptiste Joseph Fourier had a crazy idea:



Any periodic function can be written as a weighted sum

of sines and cosines of different frequencies (1807).

of sines and cosines of different frequencies (1807).



Don’t believe it?



Neither did Lagrange, Laplace, Poisson, …



But it is true!

 Fourier series



Even functions that are not periodic (but whose



Even functions that are not periodic (but whose

area under the curve is finite) can be expressed

as the integral of sines and cosines multiplied by a

weighing function.

(3)

Fourier theory



The Fourier theory

shows how most real

functions can be

functions can be

represented in terms

of a basis of sinusoids.



The building block:



A sin( ωx + Φ )

Add enough of them



Add enough of them

to get any signal you

want.

(4)
(5)
(6)
(7)
(8)
(9)
(10)

Fourier transform

(11)

Fourier transform

(12)

Fourier transform

(13)
(14)
(15)

Fourier transform

(16)

Fourier transform

Example building patterns

in a satellite image and

in a satellite image and

their Fourier spectrum.

(17)
(18)

Frequency domain filtering

Adapted from Shapiro and Stockman, and Gonzales and Woods

(19)

Frequency domain filtering



Since the discrete Fourier transform is periodic, padding is

needed in the implementation to avoid aliasing (see section

4.6 in the Gonzales-Woods book for implementation details).

(20)

Frequency domain filtering

f(x,y)

|F(u,v)|

h(x,y)



|H(u,v)|

××××

CS 484, Spring 2009 ©2009, Selim Aksoy 20

g(x,y)

|G(u,v)|

(21)

Smoothing frequency domain filters

(22)
(23)

Smoothing frequency domain filters



The blurring and ringing caused by the ideal

low-pass filter can be explained using the convolution

theorem where the spatial representation of a

theorem where the spatial representation of a

filter is given below.

(24)

Smoothing frequency domain filters

(25)
(26)
(27)

Sharpening frequency domain filters

(28)

Sharpening frequency domain filters

(29)

Sharpening frequency domain filters

(30)

Frequency domain processing

An image and its Fourier spectrum.

(31)

Frequency domain processing

Results of modifying the spectrum and reconstructing the image.

(32)

Frequency domain processing

Results of modifying the spectrum and reconstructing the image.

(33)

Template matching



Correlation can also be used for

matching

.



If we want to determine whether an image f



If we want to determine whether an image f

contains a particular object, we let h be that

object (also called a

template

) and compute the

correlation between f and h.



If there is a match, the correlation will be

maximum at the location where h finds a

correspondence in f.

correspondence in f.



Preprocessing such as scaling and alignment is

(34)

Template matching

(35)

Template matching

(36)

Template matching

(37)

Resizing images

How can we generate a

half-sized version of a

large image?

(38)

Resizing images

1/4

1/8

Throw away every other row and column to create

a 1/2 size image (also called sub-sampling).

1/4

(39)

Resizing images

Does this look nice?

1/4 (2x zoom)

1/8 (4x zoom)

1/2

(40)

Resizing images



We cannot shrink an image by simply taking every k’th pixel.



Solution: smooth the image, then sub-sample.

Gaussian 1/4

Gaussian 1/8

(41)

Resizing images

Gaussian 1/4

(2x zoom)

Gaussian 1/8

(4x zoom)

Gaussian 1/2

(42)

Sampling and aliasing

(43)

Sampling and aliasing



Errors appear if we do not sample properly.



Common phenomenon:



Common phenomenon:



High spatial frequency components of the image appear

as low spatial frequency components.



Examples:



Wagon wheels rolling the wrong way in movies.



Checkerboards misrepresented in ray tracing.



Striped shirts look funny on color television.

(44)

Gaussian pyramids

(45)

Gaussian pyramids

(46)

Gaussian pyramids

References

Related documents

Rosemary Fain, Self.. Appendix C: Expunctions and Non-disclosures Witness List The following individuals testified on the issue: Corpus Christi hearing: Kyle

This indicator shows the recorded quantity of water abstracted from surface and groundwater for agricultural use.. Chart DA5 shows the annual total reported levels of water

Issue Dates The Topcial Themes Trade fairs | Exhibitons | Additional distribution. 1/2 Ad closing date: Printing material:

The research study found that the application o f EM in geopolym er concrete showed im provem ents in the various properties o f concrete in term s o f com

It is the (education that will empower biology graduates for the application of biology knowledge and skills acquired in solving the problem of unemployment for oneself and others

• A training allowance of £700 a month will be provided to assist with accommodation and subsistence costs. More details:

The immediate payback from public investment in tourism marketing was proved by the public/private marketing partnership formed after the Foot and Mouth outbreak and 9/11 attacks

The aim of this paper is to discuss the usefulness of the Physical Examination of the Newborn Clinical Assessment Tool (PENCAT), which was originally developed as assessment